summaryrefslogtreecommitdiff
path: root/sw/source/ui/lingu
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@gmx.com>2013-01-23 23:48:38 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-01-25 00:57:42 +0000
commitbc84545cb2c58f1f267ed2efb770bb5624ee7c70 (patch)
tree035a60a265858d4b18fa7cb0139d8a4aee7dd23b /sw/source/ui/lingu
parent0d6e43bd788c075675b549ff4f63f706406cefa5 (diff)
OUString: remove namespace and chained appends
Change-Id: I1eb7e61f3151c0469db26c69439e16be0f7063df Reviewed-on: https://gerrit.libreoffice.org/1833 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/ui/lingu')
-rw-r--r--sw/source/ui/lingu/hhcwrp.cxx12
1 files changed, 4 insertions, 8 deletions
diff --git a/sw/source/ui/lingu/hhcwrp.cxx b/sw/source/ui/lingu/hhcwrp.cxx
index 260afda6d880..fb0615c16031 100644
--- a/sw/source/ui/lingu/hhcwrp.cxx
+++ b/sw/source/ui/lingu/hhcwrp.cxx
@@ -49,7 +49,6 @@
#include <unomid.h>
-using ::rtl::OUString;
using namespace ::com::sun::star;
using namespace ::com::sun::star::text;
using namespace ::com::sun::star::uno;
@@ -169,7 +168,7 @@ SwHHCWrapper::~SwHHCWrapper()
void SwHHCWrapper::GetNextPortion(
- ::rtl::OUString& rNextPortion,
+ OUString& rNextPortion,
LanguageType& rLangOfPortion,
sal_Bool bAllowChanges )
{
@@ -380,15 +379,12 @@ void SwHHCWrapper::ChangeText_impl( const String &rNewText, sal_Bool bKeepAttrib
void SwHHCWrapper::ReplaceUnit(
const sal_Int32 nUnitStart, const sal_Int32 nUnitEnd,
- const ::rtl::OUString& rOrigText,
+ const OUString& rOrigText,
const OUString& rReplaceWith,
const uno::Sequence< sal_Int32 > &rOffsets,
ReplacementAction eAction,
LanguageType *pNewUnitLanguage )
{
- static OUString aBracketedStart( "(" );
- static OUString aBracketedEnd( ")" );
-
OSL_ENSURE( nUnitStart >= 0 && nUnitEnd >= nUnitStart, "wrong arguments" );
if (!(nUnitStart >= 0 && nUnitEnd >= nUnitStart))
return;
@@ -413,12 +409,12 @@ void SwHHCWrapper::ReplaceUnit(
break;
case eReplacementBracketed :
{
- (((aNewTxt = aOrigTxt) += aBracketedStart) += rReplaceWith) += aBracketedEnd;
+ aNewTxt = aOrigTxt + "(" + rReplaceWith + ")";
}
break;
case eOriginalBracketed :
{
- (((aNewTxt = rReplaceWith) += aBracketedStart) += aOrigTxt) += aBracketedEnd;
+ aNewTxt = rReplaceWith + "(" + aOrigTxt + ")";
}
break;
case eReplacementAbove :