diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-08-21 09:39:16 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-08-21 11:05:28 +0200 |
commit | 13ae66c0eb0ab03ac4a43c52dd2359fbaa7f5867 (patch) | |
tree | 48240e6ac377af8dfc4abde33d5b1c3ae1743127 /shell/source | |
parent | 414b93285f081cd1a0bfb0847fbd3943bf50093a (diff) |
loplugin:stringstatic (clang-cl)
Change-Id: I024c7437e876459e22a6f541405b87ac13e7dc99
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101135
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'shell/source')
-rw-r--r-- | shell/source/win32/simplemail/smplmailclient.cxx | 37 |
1 files changed, 12 insertions, 25 deletions
diff --git a/shell/source/win32/simplemail/smplmailclient.cxx b/shell/source/win32/simplemail/smplmailclient.cxx index 97c040321519..205b3eb5344d 100644 --- a/shell/source/win32/simplemail/smplmailclient.cxx +++ b/shell/source/win32/simplemail/smplmailclient.cxx @@ -56,19 +56,6 @@ using css::system::XSimpleMailMessage2; using css::system::SimpleMailClientFlags::NO_USER_INTERFACE; using css::system::SimpleMailClientFlags::NO_LOGON_DIALOG; -const OUString TO("--to"); -const OUString CC("--cc"); -const OUString BCC("--bcc"); -const OUString FROM("--from"); -const OUString SUBJECT("--subject"); -const OUString BODY("--body"); -const OUString ATTACH("--attach"); -const OUString ATTACH_NAME("--attach-name"); -const OUString FLAG_MAPI_DIALOG("--mapi-dialog"); -const OUString FLAG_MAPI_LOGON_UI("--mapi-logon-ui"); -const OUString FLAG_LANGTAG("--langtag"); -const OUString FLAG_BOOTSTRAP("--bootstrap"); - namespace /* private */ { /** @internal @@ -263,7 +250,7 @@ void CSmplMailClient::assembleCommandLine( OUString body = xMessage->getBody(); if (body.getLength()>0) { - rCommandArgs.push_back(BODY); + rCommandArgs.push_back("--body"); rCommandArgs.push_back(body); } } @@ -271,35 +258,35 @@ void CSmplMailClient::assembleCommandLine( OUString to = xSimpleMailMessage->getRecipient(); if (to.getLength() > 0) { - rCommandArgs.push_back(TO); + rCommandArgs.push_back("--to"); rCommandArgs.push_back(to); } const Sequence<OUString> ccRecipients = xSimpleMailMessage->getCcRecipient(); for (OUString const & s : ccRecipients) { - rCommandArgs.push_back(CC); + rCommandArgs.push_back("--cc"); rCommandArgs.push_back(s); } const Sequence<OUString> bccRecipients = xSimpleMailMessage->getBccRecipient(); for (OUString const & s : bccRecipients) { - rCommandArgs.push_back(BCC); + rCommandArgs.push_back("--bcc"); rCommandArgs.push_back(s); } OUString from = xSimpleMailMessage->getOriginator(); if (from.getLength() > 0) { - rCommandArgs.push_back(FROM); + rCommandArgs.push_back("--from"); rCommandArgs.push_back(from); } OUString subject = xSimpleMailMessage->getSubject(); if (subject.getLength() > 0) { - rCommandArgs.push_back(SUBJECT); + rCommandArgs.push_back("--subject"); rCommandArgs.push_back(subject); } @@ -316,22 +303,22 @@ void CSmplMailClient::assembleCommandLine( static_cast<XSimpleMailClient*>(this), 1); - rCommandArgs.push_back(ATTACH); + rCommandArgs.push_back("--attach"); rCommandArgs.push_back(sysPath); if (!sDisplayName.isEmpty()) { - rCommandArgs.push_back(ATTACH_NAME); + rCommandArgs.push_back("--attach-name"); rCommandArgs.push_back(sDisplayName); } } if (!(aFlag & NO_USER_INTERFACE)) - rCommandArgs.push_back(FLAG_MAPI_DIALOG); + rCommandArgs.push_back("--mapi-dialog"); if (!(aFlag & NO_LOGON_DIALOG)) - rCommandArgs.push_back(FLAG_MAPI_LOGON_UI); + rCommandArgs.push_back("--mapi-logon-ui"); - rCommandArgs.push_back(FLAG_LANGTAG); + rCommandArgs.push_back("--langtag"); rCommandArgs.push_back(SvtSysLocale().GetUILanguageTag().getBcp47()); rtl::Bootstrap aBootstrap; @@ -339,7 +326,7 @@ void CSmplMailClient::assembleCommandLine( aBootstrap.getIniName(sBootstrapPath); if (!sBootstrapPath.isEmpty()) { - rCommandArgs.push_back(FLAG_BOOTSTRAP); + rCommandArgs.push_back("--bootstrap"); rCommandArgs.push_back(sBootstrapPath); } |