diff options
Diffstat (limited to 'uui/source/logindlg.cxx')
-rw-r--r-- | uui/source/logindlg.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/uui/source/logindlg.cxx b/uui/source/logindlg.cxx index 78a29c86078e..8a15dfe7a8ba 100644 --- a/uui/source/logindlg.cxx +++ b/uui/source/logindlg.cxx @@ -250,8 +250,8 @@ LoginDialog::LoginDialog ( Window* pParent, sal_uInt16 nFlags, - const String& rServer, - const String* pRealm, + const rtl::OUString& rServer, + const rtl::OUString& rRealm, ResMgr* pResMgr ) : @@ -280,10 +280,10 @@ LoginDialog::LoginDialog { UniString aRequest; - if ((nFlags & LF_NO_ACCOUNT) != 0 && pRealm && pRealm->Len() != 0) + if ((nFlags & LF_NO_ACCOUNT) != 0 && !rRealm.isEmpty()) { - aRequest = ResId(STR_LOGIN_REALM, *pResMgr); - aRequest.SearchAndReplaceAscii("%2", *pRealm); + aRequest = ResId::toString(ResId(STR_LOGIN_REALM, *pResMgr)); + aRequest.SearchAndReplaceAscii("%2", rRealm); } else aRequest = aRequestInfo.GetText(); |