Kaydet (Commit) 1ba89864 authored tarafından Luboš Luňák's avatar Luboš Luňák

fix for the awkward OUString::replaceAll() behaviour

Change-Id: I6ee919bb17ea7eb29cb9cfc0fc69d02d728d9a0f
üst ce22d30e
...@@ -55,12 +55,10 @@ OUString getResource( sal_uInt16 nResourceId, ...@@ -55,12 +55,10 @@ OUString getResource( sal_uInt16 nResourceId,
OUString sResource = frm::ResourceManager::loadString( nResourceId ); OUString sResource = frm::ResourceManager::loadString( nResourceId );
OSL_ENSURE( !sResource.isEmpty(), "resource not found?" ); OSL_ENSURE( !sResource.isEmpty(), "resource not found?" );
// use old style String class for search and replace, so we don't have to
// code this again.
OUString sString( sResource ); OUString sString( sResource );
sString.replaceAll( "$1", rInfo1 ); sString = sString.replaceAll( "$1", rInfo1 );
sString.replaceAll( "$2", rInfo2 ); sString = sString.replaceAll( "$2", rInfo2 );
sString.replaceAll( "$3", rInfo3 ); sString = sString.replaceAll( "$3", rInfo3 );
return sString; return sString;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment