summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--editeng/source/items/svxfont.cxx4
-rw-r--r--include/editeng/svxfont.hxx3
2 files changed, 3 insertions, 4 deletions
diff --git a/editeng/source/items/svxfont.cxx b/editeng/source/items/svxfont.cxx
index b873c596d457..b86160f6e05d 100644
--- a/editeng/source/items/svxfont.cxx
+++ b/editeng/source/items/svxfont.cxx
@@ -199,11 +199,11 @@ void SvxDoCapitals::SetSpace() { }
* calls the method SvxDoCapitals::Do( ).
*************************************************************************/
-void SvxFont::DoOnCapitals(SvxDoCapitals &rDo, const xub_StrLen nPartLen) const
+void SvxFont::DoOnCapitals(SvxDoCapitals &rDo) const
{
const OUString &rTxt = rDo.GetTxt();
const xub_StrLen nIdx = rDo.GetIdx();
- const sal_Int32 nLen = STRING_LEN == nPartLen ? rDo.GetLen() : nPartLen;
+ const sal_Int32 nLen = rDo.GetLen();
const OUString aTxt( CalcCaseMap( rTxt ) );
const sal_uInt16 nTxtLen = std::min( rTxt.getLength(), nLen );
diff --git a/include/editeng/svxfont.hxx b/include/editeng/svxfont.hxx
index 34d78f1c8b6f..cbd4d0280291 100644
--- a/include/editeng/svxfont.hxx
+++ b/include/editeng/svxfont.hxx
@@ -74,8 +74,7 @@ public:
OUString CalcCaseMap(const OUString &rTxt) const;
// Handle upper case letters
- void DoOnCapitals( SvxDoCapitals &rDo,
- const sal_uInt16 nPartLen = USHRT_MAX ) const;
+ void DoOnCapitals(SvxDoCapitals &rDo) const;
void SetPhysFont( OutputDevice *pOut ) const;
Font ChgPhysFont( OutputDevice *pOut ) const;