Kaydet (Commit) c5ca63a0 authored tarafından Matteo Casalin's avatar Matteo Casalin

sal_uInt16 to sal_Int32/size_t

Change-Id: Icb8765339412bedf1e424a766bc99274ab96ceab
üst 40c34e62
......@@ -284,7 +284,7 @@ void WrongList::TextDeleted( size_t nPos, size_t nLength )
size_t nEndPos = nPos + nLength;
if (IsValid())
{
sal_uInt16 nNewInvalidStart = nPos ? nPos - 1 : 0;
const size_t nNewInvalidStart = nPos ? nPos - 1 : 0;
mnInvalidStart = nNewInvalidStart;
mnInvalidEnd = nNewInvalidStart + 1;
}
......@@ -546,7 +546,7 @@ bool WrongList::DbgIsBuggy() const
EdtAutoCorrDoc::EdtAutoCorrDoc(
EditEngine* pE, ContentNode* pN, sal_uInt16 nCrsr, sal_Unicode cIns) :
EditEngine* pE, ContentNode* pN, sal_Int32 nCrsr, sal_Unicode cIns) :
mpEditEngine(pE),
pCurNode(pN),
nCursor(nCrsr),
......@@ -593,7 +593,7 @@ bool EdtAutoCorrDoc::Replace(sal_Int32 nPos, const OUString& rTxt)
bool EdtAutoCorrDoc::ReplaceRange(sal_Int32 nPos, sal_Int32 nSourceLength, const OUString& rTxt)
{
// Actually a Replace introduce => corresponds to UNDO
sal_uInt16 nEnd = nPos+nSourceLength;
sal_Int32 nEnd = nPos+nSourceLength;
if ( nEnd > pCurNode->Len() )
nEnd = pCurNode->Len();
......
......@@ -123,7 +123,7 @@ class EdtAutoCorrDoc : public SvxAutoCorrDoc
{
EditEngine* mpEditEngine;
ContentNode* pCurNode;
sal_uInt16 nCursor;
sal_Int32 nCursor;
bool bAllowUndoAction;
bool bUndoAction;
......@@ -132,7 +132,7 @@ protected:
void ImplStartUndoAction();
public:
EdtAutoCorrDoc(EditEngine* pE, ContentNode* pCurNode, sal_uInt16 nCrsr, sal_Unicode cIns);
EdtAutoCorrDoc(EditEngine* pE, ContentNode* pCurNode, sal_Int32 nCrsr, sal_Unicode cIns);
virtual ~EdtAutoCorrDoc();
virtual bool Delete( sal_Int32 nStt, sal_Int32 nEnd ) SAL_OVERRIDE;
......@@ -150,7 +150,7 @@ public:
virtual LanguageType GetLanguage( sal_Int32 nPos, bool bPrevPara = false ) const SAL_OVERRIDE;
sal_uInt16 GetCursor() const { return nCursor; }
sal_Int32 GetCursor() const { return nCursor; }
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment