diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-07-30 17:47:00 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-07-31 12:53:30 +0200 |
commit | 92a8faa5ea624e670f8ad46235f6c89b99159406 (patch) | |
tree | a6daeb50679ea57d8455c9d724321ccb556915a5 /tools | |
parent | eda2eb3014cadbc5f9818c84b9a698682a6061e6 (diff) |
Improved loplugin:stringconstant (now that GCC 7 supports it): tools
Change-Id: I6391e8caf4e344d410a31f45d391059498ebd928
Reviewed-on: https://gerrit.libreoffice.org/76635
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/inet/inetmsg.cxx | 4 | ||||
-rw-r--r-- | tools/source/xml/XmlWalker.cxx | 5 |
2 files changed, 3 insertions, 6 deletions
diff --git a/tools/source/inet/inetmsg.cxx b/tools/source/inet/inetmsg.cxx index e393baaaf91e..918746eeaea5 100644 --- a/tools/source/inet/inetmsg.cxx +++ b/tools/source/inet/inetmsg.cxx @@ -247,9 +247,9 @@ OUString INetMIMEMessage::GetDefaultContentType() aParentCT = pParent->GetDefaultContentType(); if (aParentCT.equalsIgnoreAsciiCase("multipart/digest")) - return OUString("message/rfc822"); + return "message/rfc822"; } - return OUString("text/plain; charset=us-ascii"); + return "text/plain; charset=us-ascii"; } void INetMIMEMessage::EnableAttachMultipartFormDataChild() diff --git a/tools/source/xml/XmlWalker.cxx b/tools/source/xml/XmlWalker.cxx index 736cd07edeba..b21c22335018 100644 --- a/tools/source/xml/XmlWalker.cxx +++ b/tools/source/xml/XmlWalker.cxx @@ -59,10 +59,7 @@ bool XmlWalker::open(SvStream* pStream) return true; } -OString XmlWalker::name() -{ - return OString(reinterpret_cast<const char*>(mpImpl->mpCurrent->name)); -} +OString XmlWalker::name() { return reinterpret_cast<const char*>(mpImpl->mpCurrent->name); } OString XmlWalker::content() { |