Kaydet (Commit) 96b5d4f6 authored tarafından Noel Grandin's avatar Noel Grandin

uui: prefer passing OUString by reference

Change-Id: Iec1fb3fd063d73f04a1600a21d6129e4cd5476b4
üst 4386863e
...@@ -507,7 +507,7 @@ executePasswordDialog( ...@@ -507,7 +507,7 @@ executePasswordDialog(
Window * pParent, Window * pParent,
LoginErrorInfo & rInfo, LoginErrorInfo & rInfo,
task::PasswordRequestMode nMode, task::PasswordRequestMode nMode,
OUString aDocName, const OUString& aDocName,
bool bMSCryptoMode, bool bMSCryptoMode,
bool bIsPasswordToModify, bool bIsPasswordToModify,
bool bIsSimplePasswordRequest ) bool bIsSimplePasswordRequest )
...@@ -569,7 +569,7 @@ handlePasswordRequest_( ...@@ -569,7 +569,7 @@ handlePasswordRequest_(
task::PasswordRequestMode nMode, task::PasswordRequestMode nMode,
uno::Sequence< uno::Reference< task::XInteractionContinuation > > const & uno::Sequence< uno::Reference< task::XInteractionContinuation > > const &
rContinuations, rContinuations,
OUString aDocumentName, const OUString& aDocumentName,
bool bMSCryptoMode, bool bMSCryptoMode,
bool bIsPasswordToModify, bool bIsPasswordToModify,
bool bIsSimplePasswordRequest = false ) bool bIsSimplePasswordRequest = false )
......
...@@ -80,7 +80,7 @@ getContentPart( const OUString& _rRawString ) ...@@ -80,7 +80,7 @@ getContentPart( const OUString& _rRawString )
bool bool
isDomainMatch( isDomainMatch(
OUString hostName, uno::Sequence< OUString > certHostNames) const OUString& hostName, uno::Sequence< OUString > certHostNames)
{ {
for ( int i = 0; i < certHostNames.getLength(); i++){ for ( int i = 0; i < certHostNames.getLength(); i++){
OUString element = certHostNames[i]; OUString element = certHostNames[i];
......
...@@ -257,9 +257,10 @@ UUIInteractionHelper::getStringFromRequest( ...@@ -257,9 +257,10 @@ UUIInteractionHelper::getStringFromRequest(
OUString OUString
UUIInteractionHelper::replaceMessageWithArguments( UUIInteractionHelper::replaceMessageWithArguments(
OUString aMessage, const OUString& _aMessage,
std::vector< OUString > const & rArguments ) std::vector< OUString > const & rArguments )
{ {
OUString aMessage = _aMessage;
for (sal_Int32 i = 0;;) for (sal_Int32 i = 0;;)
{ {
i = aMessage.indexOf("$(ARG", i); i = aMessage.indexOf("$(ARG", i);
......
...@@ -122,7 +122,7 @@ public: ...@@ -122,7 +122,7 @@ public:
// Helper. // Helper.
static OUString static OUString
replaceMessageWithArguments( replaceMessageWithArguments(
OUString aMessage, const OUString& aMessage,
std::vector< OUString > const & rArguments ); std::vector< OUString > const & rArguments );
::com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > ::com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >
......
...@@ -27,7 +27,7 @@ using namespace ::com::sun::star; ...@@ -27,7 +27,7 @@ using namespace ::com::sun::star;
PasswordDialog::PasswordDialog(Window* _pParent, PasswordDialog::PasswordDialog(Window* _pParent,
task::PasswordRequestMode nDlgMode, ResMgr * pResMgr, task::PasswordRequestMode nDlgMode, ResMgr * pResMgr,
OUString& aDocURL, bool bOpenToModify, bool bIsSimplePasswordRequest) const OUString& aDocURL, bool bOpenToModify, bool bIsSimplePasswordRequest)
: ModalDialog(_pParent, "PasswordDialog", "uui/ui/password.ui") : ModalDialog(_pParent, "PasswordDialog", "uui/ui/password.ui")
, nMinLen(1) , nMinLen(1)
, aPasswdMismatch(ResId(STR_PASSWORD_MISMATCH, *pResMgr)) , aPasswdMismatch(ResId(STR_PASSWORD_MISMATCH, *pResMgr))
......
...@@ -44,7 +44,7 @@ class PasswordDialog : public ModalDialog ...@@ -44,7 +44,7 @@ class PasswordDialog : public ModalDialog
DECL_LINK(OKHdl_Impl, void *); DECL_LINK(OKHdl_Impl, void *);
public: public:
PasswordDialog( Window* pParent, ::com::sun::star::task::PasswordRequestMode nDlgMode, ResMgr * pResMgr, OUString& aDocURL, PasswordDialog( Window* pParent, ::com::sun::star::task::PasswordRequestMode nDlgMode, ResMgr * pResMgr, const OUString& aDocURL,
bool bOpenToModify = false, bool bIsSimplePasswordRequest = false ); bool bOpenToModify = false, bool bIsSimplePasswordRequest = false );
void SetMinLen( sal_uInt16 nMin ) { nMinLen = nMin; } void SetMinLen( sal_uInt16 nMin ) { nMinLen = nMin; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment