diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-03-01 09:22:13 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-04-05 11:25:10 +0200 |
commit | a4704cb0d0a3c4469256c6c5aa10d396b8b52676 (patch) | |
tree | 2a2971ed921f2cd52bcaf0de9743f41f81ded3ca /sw | |
parent | 7d26404c45576eb5aa8ac18038539f0f7a902fa6 (diff) |
Some OUString simplifications
Change-Id: I6bdb45e5a4b84d0c851f07c4063b7d6d58d54a44
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/doc/docredln.cxx | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/sw/source/core/doc/docredln.cxx b/sw/source/core/doc/docredln.cxx index 1d1e7bc91ee2..0d1c3e6c60ad 100644 --- a/sw/source/core/doc/docredln.cxx +++ b/sw/source/core/doc/docredln.cxx @@ -845,11 +845,7 @@ void SwRedlineData::SetExtraData( const SwRedlineExtraData* pData ) OUString SwRedlineData::GetDescr() const { - OUString aResult; - - aResult += SW_RES(STR_REDLINE_INSERT + GetType()); - - return aResult; + return SW_RES(STR_REDLINE_INSERT + GetType()); } SwRangeRedline::SwRangeRedline(RedlineType_t eTyp, const SwPaM& rPam ) @@ -1587,10 +1583,8 @@ const SwRedlineData & SwRangeRedline::GetRedlineData(sal_uInt16 nPos) const OUString SwRangeRedline::GetDescr(sal_uInt16 nPos) { - OUString aResult; - // get description of redline data (e.g.: "insert $1") - aResult = GetRedlineData(nPos).GetDescr(); + OUString aResult = GetRedlineData(nPos).GetDescr(); SwPaM * pPaM = NULL; bool bDeletePaM = false; @@ -1608,11 +1602,9 @@ OUString SwRangeRedline::GetDescr(sal_uInt16 nPos) } // replace $1 in description by description of the redlines text - OUString aTmpStr; - aTmpStr += SW_RES(STR_START_QUOTE); - aTmpStr += ShortenString(pPaM->GetTxt(), nUndoStringLength, - OUString(SW_RES(STR_LDOTS))); - aTmpStr += SW_RES(STR_END_QUOTE); + const OUString aTmpStr = SW_RESSTR(STR_START_QUOTE) + + ShortenString(pPaM->GetTxt(), nUndoStringLength, SW_RESSTR(STR_LDOTS)) + + SW_RESSTR(STR_END_QUOTE); SwRewriter aRewriter; aRewriter.AddRule(UndoArg1, aTmpStr); |