diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-09-05 10:04:02 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-09-05 10:05:29 +0200 |
commit | 4c491c1253de0210dcd4d4ff593ee73562e4d958 (patch) | |
tree | 2dc2829b28ee0c829264e26be6bee2fbfa9ad148 /cui | |
parent | 17ff0d2b866f0e501057695d1485bf7d8d882f2a (diff) |
Make use replaceFirst
Change-Id: Ieedb318f36afc5d85fa90533578e847a1d9d6840
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/optsave.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cui/source/options/optsave.cxx b/cui/source/options/optsave.cxx index 27f7b7885a7c..094f6362c9f2 100644 --- a/cui/source/options/optsave.cxx +++ b/cui/source/options/optsave.cxx @@ -427,8 +427,7 @@ void SfxSaveTabPage::Reset( const SfxItemSet& ) case APP_MATH : sReplace = "com.sun.star.formula.FormulaProperties";break; default: OSL_FAIL("illegal user data"); } - OUString sTmp = sCommand.replaceFirst("%1", sReplace); - sCommand = sTmp; + sCommand = sCommand.replaceFirst("%1", sReplace); Reference< XEnumeration > xList = xQuery->createSubSetEnumerationByQuery(sCommand); SequenceAsVector< OUString > lList; SequenceAsVector< sal_Bool > lAlienList; |