summaryrefslogtreecommitdiff
path: root/reportdesign
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-10-08 10:06:59 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-10-08 14:05:58 +0100
commit832e5aadbff006ec24959162c29756fe2b1982be (patch)
tree9c258056fec29b0defaf012f8cb0945efed2b2e0 /reportdesign
parentc811c0706f0ecf3400e8fcc510ca283dd593237f (diff)
Related: fdo#38838 remove UniString::SearchAndReplaceAll
Change-Id: I093c95b8700b628375d69293022f7d4b8da2af9c
Diffstat (limited to 'reportdesign')
-rw-r--r--reportdesign/source/ui/inspection/GeometryHandler.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/reportdesign/source/ui/inspection/GeometryHandler.cxx b/reportdesign/source/ui/inspection/GeometryHandler.cxx
index 3f40709f7d87..892e21785875 100644
--- a/reportdesign/source/ui/inspection/GeometryHandler.cxx
+++ b/reportdesign/source/ui/inspection/GeometryHandler.cxx
@@ -2114,9 +2114,9 @@ void GeometryHandler::impl_createFunction(const OUString& _sFunctionName,const O
const String sPlaceHolder1(RTL_CONSTASCII_USTRINGPARAM("%Column"));
const String sPlaceHolder2(RTL_CONSTASCII_USTRINGPARAM("%FunctionName"));
- String sFormula(_aFunction.m_sFormula);
- sFormula.SearchAndReplaceAll(sPlaceHolder1,_sDataField);
- sFormula.SearchAndReplaceAll(sPlaceHolder2,_sFunctionName);
+ OUString sFormula(_aFunction.m_sFormula);
+ sFormula = sFormula.replaceAll(sPlaceHolder1,_sDataField);
+ sFormula = sFormula.replaceAll(sPlaceHolder2,_sFunctionName);
m_xFunction->setFormula(sFormula);
m_xFunction->setPreEvaluated(_aFunction.m_bPreEvaluated);
@@ -2124,9 +2124,9 @@ void GeometryHandler::impl_createFunction(const OUString& _sFunctionName,const O
if ( _aFunction.m_sInitialFormula.IsPresent )
{
beans::Optional< OUString> aInitialFormula = _aFunction.m_sInitialFormula;
- String sInitialFormula = aInitialFormula.Value;
- sInitialFormula.SearchAndReplaceAll(sPlaceHolder1,_sDataField);
- sInitialFormula.SearchAndReplaceAll(sPlaceHolder2,_sFunctionName);
+ OUString sInitialFormula = aInitialFormula.Value;
+ sInitialFormula = sInitialFormula.replaceAll(sPlaceHolder1,_sDataField);
+ sInitialFormula = sInitialFormula.replaceAll(sPlaceHolder2,_sFunctionName);
aInitialFormula.Value = sInitialFormula;
m_xFunction->setInitialFormula( aInitialFormula );
}