diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-01-22 13:13:30 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-01-23 11:37:05 +0000 |
commit | 3e41fd078144094913ed62ae7fce5b91c820f98f (patch) | |
tree | 70f4db21054f8ccb7b36b35f0cb8bd10963885eb /framework | |
parent | eb8e39f2a4cd21033d020a9e9919e1cb29d182c7 (diff) |
can replace all PLACEHOLDER_PATH tokens
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/services/autorecovery.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/framework/source/services/autorecovery.cxx b/framework/source/services/autorecovery.cxx index b464c1c6a02e..6d2b6b6314ea 100644 --- a/framework/source/services/autorecovery.cxx +++ b/framework/source/services/autorecovery.cxx @@ -81,9 +81,9 @@ #include <comphelper/configurationhelper.hxx> #include <comphelper/mediadescriptor.hxx> #include <comphelper/namedvaluecollection.hxx> +#include <comphelper/string.hxx> #include <vcl/svapp.hxx> #include <unotools/pathoptions.hxx> -#include <tools/string.hxx> #include <tools/diagnose_ex.h> #include <unotools/tempfile.hxx> #include <ucbhelper/content.hxx> @@ -3486,7 +3486,7 @@ void AutoRecovery::impl_showFullDiscError() rtl::OUString PLACEHOLDER_PATH(RTL_CONSTASCII_USTRINGPARAM("%PATH")); rtl::OUString sBtn(ResId::toString(FwkResId(STR_FULL_DISC_RETRY_BUTTON))); - String sMsg(ResId::toString(FwkResId(STR_FULL_DISC_MSG))); + rtl::OUString sMsg(ResId::toString(FwkResId(STR_FULL_DISC_MSG))); rtl::OUString sBackupURL(SvtPathOptions().GetBackupPath()); INetURLObject aConverter(sBackupURL); @@ -3494,9 +3494,8 @@ void AutoRecovery::impl_showFullDiscError() rtl::OUString sBackupPath = aConverter.getFSysPath(INetURLObject::FSYS_DETECT, &aDelimiter); if (sBackupPath.getLength() < 1) sBackupPath = sBackupURL; - sMsg.SearchAndReplace(PLACEHOLDER_PATH, sBackupPath); - ErrorBox dlgError(0, WB_OK, sMsg); + ErrorBox dlgError(0, WB_OK, comphelper::string::replace(sMsg, PLACEHOLDER_PATH, sBackupPath)); dlgError.SetButtonText(dlgError.GetButtonId(0), sBtn); dlgError.Execute(); } |