summaryrefslogtreecommitdiff
path: root/padmin
diff options
context:
space:
mode:
Diffstat (limited to 'padmin')
-rw-r--r--padmin/source/pamain.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/padmin/source/pamain.cxx b/padmin/source/pamain.cxx
index e521c331d711..571d44db090b 100644
--- a/padmin/source/pamain.cxx
+++ b/padmin/source/pamain.cxx
@@ -60,15 +60,15 @@ public:
int Main();
virtual sal_uInt16 Exception( sal_uInt16 nError );
- static void ReadStringHook( String& );
+ static rtl::OUString ReadStringHook( const rtl::OUString& );
};
MyApp aMyApp;
-void MyApp::ReadStringHook( String& rStr )
+rtl::OUString MyApp::ReadStringHook( const rtl::OUString& rStr )
{
- rStr.SearchAndReplaceAllAscii(
- "%PRODUCTNAME", utl::ConfigManager::getProductName() );
+ return rStr.replaceAll(
+ rtl::OUString("%PRODUCTNAME"), utl::ConfigManager::getProductName() );
};