diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-05-06 23:28:17 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-05-07 08:19:51 +0100 |
commit | 535e9e7f7d2ddf312a2b77350e94606584778709 (patch) | |
tree | db37c2c6e8f5820833d61686f29d512eb27fd0db /uui/source/iahndl-locking.cxx | |
parent | 0672b7a929576f902c48058e712c7d1a5711ac64 (diff) |
tidy ResId String/rtl::OUString cast foo
Change-Id: I1e8fca182a27efb403e903b424ca4c1c0d3acc49
Diffstat (limited to 'uui/source/iahndl-locking.cxx')
-rw-r--r-- | uui/source/iahndl-locking.cxx | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/uui/source/iahndl-locking.cxx b/uui/source/iahndl-locking.cxx index 5ed5c01ae062..e7235e5dc486 100644 --- a/uui/source/iahndl-locking.cxx +++ b/uui/source/iahndl-locking.cxx @@ -97,10 +97,9 @@ handleLockedDocumentRequest_( { aArguments.push_back( !aInfo.isEmpty() ? aInfo - : ::rtl::OUString( String( - ResId( STR_UNKNOWNUSER, - *xManager.get() ) ) ) ); - aMessage = String( ResId( STR_OPENLOCKED_MSG, *xManager.get() ) ); + : ResId( STR_UNKNOWNUSER, + *xManager.get() ).toString() ); + aMessage = ResId(STR_OPENLOCKED_MSG, *xManager.get()).toString(); aMessage = UUIInteractionHelper::replaceMessageWithArguments( aMessage, aArguments ); @@ -112,10 +111,9 @@ handleLockedDocumentRequest_( { aArguments.push_back( !aInfo.isEmpty() ? aInfo - : ::rtl::OUString( String( - ResId( STR_UNKNOWNUSER, - *xManager.get() ) ) ) ); - aMessage = String( ResId( STR_TRYLATER_MSG, *xManager.get() ) ); + : ResId( STR_UNKNOWNUSER, + *xManager.get() ).toString() ); + aMessage = ResId(STR_TRYLATER_MSG, *xManager.get()).toString(); aMessage = UUIInteractionHelper::replaceMessageWithArguments( aMessage, aArguments ); @@ -127,10 +125,10 @@ handleLockedDocumentRequest_( nMode == UUI_DOC_OWN_SAVE_LOCK ) { aArguments.push_back( aInfo ); - aMessage = String( ResId( nMode == UUI_DOC_OWN_SAVE_LOCK + aMessage = ResId(nMode == UUI_DOC_OWN_SAVE_LOCK ? STR_ALREADYOPEN_SAVE_MSG : STR_ALREADYOPEN_MSG, - *xManager.get() ) ); + *xManager.get() ).toString(); aMessage = UUIInteractionHelper::replaceMessageWithArguments( aMessage, aArguments ); |