diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-03-19 20:31:38 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-03-20 12:57:33 +0000 |
commit | bdfba4dbf666868c6d10b972259884877dd01848 (patch) | |
tree | 2860856ab873b182752f2dc60c30d802a9a84aee /padmin/source/pamain.cxx | |
parent | map of kind+name -> new-name (diff) | |
download | core-bdfba4dbf666868c6d10b972259884877dd01848.tar.gz core-bdfba4dbf666868c6d10b972259884877dd01848.zip |
make ResId->OUString the primary route
Diffstat (limited to 'padmin/source/pamain.cxx')
-rw-r--r-- | padmin/source/pamain.cxx | 8 |
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() ); }; |