[Libreoffice-commits] core.git: sw/source
Matteo Casalin
matteo.casalin at yahoo.com
Mon Sep 16 15:05:03 PDT 2013
sw/source/filter/ww8/writerwordglue.cxx | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
New commits:
commit 65e8e4c62afc1203f61fa8f0595b216ed0bbab3c
Author: Matteo Casalin <matteo.casalin at yahoo.com>
Date: Sun Sep 15 22:42:43 2013 +0200
Remove two temporary variables
Change-Id: Iaff9cea6038be51fdc7468bef4cd254af475a9d3
Reviewed-on: https://gerrit.libreoffice.org/5966
Reviewed-by: Matteo Casalin <matteo.casalin at yahoo.com>
Tested-by: Matteo Casalin <matteo.casalin at yahoo.com>
diff --git a/sw/source/filter/ww8/writerwordglue.cxx b/sw/source/filter/ww8/writerwordglue.cxx
index 323ac36..4bc0182 100644
--- a/sw/source/filter/ww8/writerwordglue.cxx
+++ b/sw/source/filter/ww8/writerwordglue.cxx
@@ -755,9 +755,7 @@ namespace sw
short nType = NUMBERFORMAT_DEFINED;
sal_uInt32 nKey = 0;
- OUString sParams(rParams);
- SwapQuotesInField(sParams);
- rParams = sParams;
+ SwapQuotesInField(rParams);
// Force to Japanese when finding one of 'geaE'
bool bForceJapanese = (-1 != rParams.indexOf('g')
@@ -966,9 +964,7 @@ namespace sw
if (bHijri)
rParams = "[~hijri]" + rParams;
- OUString sTemp(rParams);
- pFormatter->PutEntry(sTemp, nCheckPos, nType, nKey, rLang);
- rParams = sTemp;
+ pFormatter->PutEntry(rParams, nCheckPos, nType, nKey, rLang);
return nKey;
}
More information about the Libreoffice-commits
mailing list