diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-13 20:45:34 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-14 09:33:09 +0000 |
commit | 563ba069b529c5a65db4f5e306fc21e5c59431e6 (patch) | |
tree | cc03920680d12eff6eb3410208e98e1e6d5e9010 | |
parent | d113e328ef045e8da2b3e6f6e9d82970e882d097 (diff) |
longparas: nPartLen always is USHRT_MAX/STRING_LEN to take full string
Change-Id: I55bb0baa8e83948c470ade2fc6fabccb69dea91d
-rw-r--r-- | editeng/source/items/svxfont.cxx | 4 | ||||
-rw-r--r-- | include/editeng/svxfont.hxx | 3 |
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; |