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 ) ...@@ -284,7 +284,7 @@ void WrongList::TextDeleted( size_t nPos, size_t nLength )
size_t nEndPos = nPos + nLength; size_t nEndPos = nPos + nLength;
if (IsValid()) if (IsValid())
{ {
sal_uInt16 nNewInvalidStart = nPos ? nPos - 1 : 0; const size_t nNewInvalidStart = nPos ? nPos - 1 : 0;
mnInvalidStart = nNewInvalidStart; mnInvalidStart = nNewInvalidStart;
mnInvalidEnd = nNewInvalidStart + 1; mnInvalidEnd = nNewInvalidStart + 1;
} }
...@@ -546,7 +546,7 @@ bool WrongList::DbgIsBuggy() const ...@@ -546,7 +546,7 @@ bool WrongList::DbgIsBuggy() const
EdtAutoCorrDoc::EdtAutoCorrDoc( EdtAutoCorrDoc::EdtAutoCorrDoc(
EditEngine* pE, ContentNode* pN, sal_uInt16 nCrsr, sal_Unicode cIns) : EditEngine* pE, ContentNode* pN, sal_Int32 nCrsr, sal_Unicode cIns) :
mpEditEngine(pE), mpEditEngine(pE),
pCurNode(pN), pCurNode(pN),
nCursor(nCrsr), nCursor(nCrsr),
...@@ -593,7 +593,7 @@ bool EdtAutoCorrDoc::Replace(sal_Int32 nPos, const OUString& rTxt) ...@@ -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) bool EdtAutoCorrDoc::ReplaceRange(sal_Int32 nPos, sal_Int32 nSourceLength, const OUString& rTxt)
{ {
// Actually a Replace introduce => corresponds to UNDO // Actually a Replace introduce => corresponds to UNDO
sal_uInt16 nEnd = nPos+nSourceLength; sal_Int32 nEnd = nPos+nSourceLength;
if ( nEnd > pCurNode->Len() ) if ( nEnd > pCurNode->Len() )
nEnd = pCurNode->Len(); nEnd = pCurNode->Len();
......
...@@ -123,7 +123,7 @@ class EdtAutoCorrDoc : public SvxAutoCorrDoc ...@@ -123,7 +123,7 @@ class EdtAutoCorrDoc : public SvxAutoCorrDoc
{ {
EditEngine* mpEditEngine; EditEngine* mpEditEngine;
ContentNode* pCurNode; ContentNode* pCurNode;
sal_uInt16 nCursor; sal_Int32 nCursor;
bool bAllowUndoAction; bool bAllowUndoAction;
bool bUndoAction; bool bUndoAction;
...@@ -132,7 +132,7 @@ protected: ...@@ -132,7 +132,7 @@ protected:
void ImplStartUndoAction(); void ImplStartUndoAction();
public: 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 ~EdtAutoCorrDoc();
virtual bool Delete( sal_Int32 nStt, sal_Int32 nEnd ) SAL_OVERRIDE; virtual bool Delete( sal_Int32 nStt, sal_Int32 nEnd ) SAL_OVERRIDE;
...@@ -150,7 +150,7 @@ public: ...@@ -150,7 +150,7 @@ public:
virtual LanguageType GetLanguage( sal_Int32 nPos, bool bPrevPara = false ) const SAL_OVERRIDE; 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