summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2015-07-19 17:09:48 +0200
committerMatteo Casalin <matteo.casalin@yahoo.com>2015-07-19 17:12:33 +0200
commitc5ca63a0bb23bcc06b1ae70f169d965476bc251b (patch)
tree5dd7fb3bc99f73aa34a912ea15daf611de2ae3b9 /editeng
parent40c34e62624f89b6e994e5e202c3bcf250544d86 (diff)
sal_uInt16 to sal_Int32/size_t
Change-Id: Icb8765339412bedf1e424a766bc99274ab96ceab
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/edtspell.cxx6
-rw-r--r--editeng/source/editeng/edtspell.hxx6
2 files changed, 6 insertions, 6 deletions
diff --git a/editeng/source/editeng/edtspell.cxx b/editeng/source/editeng/edtspell.cxx
index 90d8cf462338..4ba31d7e822f 100644
--- a/editeng/source/editeng/edtspell.cxx
+++ b/editeng/source/editeng/edtspell.cxx
@@ -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();
diff --git a/editeng/source/editeng/edtspell.hxx b/editeng/source/editeng/edtspell.hxx
index 4048e97f7dcd..c6694317eddc 100644
--- a/editeng/source/editeng/edtspell.hxx
+++ b/editeng/source/editeng/edtspell.hxx
@@ -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; }
};