[Libreoffice-commits] core.git: vcl/osx

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Thu Jun 6 12:39:11 UTC 2019


 vcl/osx/HtmlFmtFlt.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit d0b866d16a60c674e2adef210c0ef2f7dc7231d3
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Thu Jun 6 10:04:07 2019 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Thu Jun 6 14:37:28 2019 +0200

    loplugin:simplifyconstruct (macOS)
    
    Change-Id: I7c46c231f720c7d35a24e19833fb3239a31946ef
    Reviewed-on: https://gerrit.libreoffice.org/73589
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/vcl/osx/HtmlFmtFlt.cxx b/vcl/osx/HtmlFmtFlt.cxx
index 6661d0e6fdde..e6abfed4fc62 100644
--- a/vcl/osx/HtmlFmtFlt.cxx
+++ b/vcl/osx/HtmlFmtFlt.cxx
@@ -70,13 +70,13 @@ std::string GetHtmlFormatHeader(size_t startHtml, size_t endHtml, size_t startFr
 
 // the office always writes the start and end html tag in upper cases and
 // without spaces both tags don't allow parameters
-const std::string TAG_HTML = std::string("<html>");
-const std::string TAG_END_HTML = std::string("</html>");
+const std::string TAG_HTML("<html>");
+const std::string TAG_END_HTML("</html>");
 
 // The body tag may have parameters so we need to search for the
 // closing '>' manually e.g. <BODY param> #92840#
-const std::string TAG_BODY = std::string("<body");
-const std::string TAG_END_BODY = std::string("</body");
+const std::string TAG_BODY("<body");
+const std::string TAG_END_BODY("</body");
 
 Sequence<sal_Int8> TextHtmlToHTMLFormat(Sequence<sal_Int8> const & aTextHtml)
 {


More information about the Libreoffice-commits mailing list