summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-10-29 11:22:48 +0200
committerNoel Grandin <noel@peralex.com>2013-11-06 08:51:23 +0200
commite74f4232844666e74aa2b8383894931c9007188e (patch)
treecedf25de7b8df93a3d4f93a4428c9f6d63dc8322
parent48d4fa594e255d05f0be15bcb345f2cf6681962f (diff)
convert linguistic::isUpper from xub_StrLen to sal_Int32
Change-Id: I7bf426e1753b3761c9ce8930ad637526a9895495
-rw-r--r--include/linguistic/misc.hxx2
-rw-r--r--linguistic/source/misc.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/linguistic/misc.hxx b/include/linguistic/misc.hxx
index 805e3c155e9d..5bbc3214880d 100644
--- a/include/linguistic/misc.hxx
+++ b/include/linguistic/misc.hxx
@@ -143,7 +143,7 @@ LNG_DLLPUBLIC sal_Int32 GetPosInWordToCheck( const OUString &rTxt, sal_Int32 nPo
::com::sun::star::linguistic2::XHyphenatedWord > &rxHyphWord );
-LNG_DLLPUBLIC sal_Bool IsUpper( const OUString &rText, xub_StrLen nPos, xub_StrLen nLen, sal_Int16 nLanguage );
+LNG_DLLPUBLIC sal_Bool IsUpper( const OUString &rText, sal_Int32 nPos, sal_Int32 nLen, sal_Int16 nLanguage );
inline sal_Bool IsUpper( const OUString &rText, sal_Int16 nLanguage ) { return IsUpper( rText, 0, rText.getLength(), nLanguage ); }
LNG_DLLPUBLIC CapType SAL_CALL capitalType(const OUString&, CharClass *);
diff --git a/linguistic/source/misc.cxx b/linguistic/source/misc.cxx
index a590af82e484..c7d208d488c8 100644
--- a/linguistic/source/misc.cxx
+++ b/linguistic/source/misc.cxx
@@ -595,7 +595,7 @@ osl::Mutex & lcl_GetCharClassMutex()
return aMutex;
}
-sal_Bool IsUpper( const OUString &rText, xub_StrLen nPos, xub_StrLen nLen, sal_Int16 nLanguage )
+sal_Bool IsUpper( const OUString &rText, sal_Int32 nPos, sal_Int32 nLen, sal_Int16 nLanguage )
{
MutexGuard aGuard( lcl_GetCharClassMutex() );