[Libreoffice-commits] core.git: include/rtl

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Mon Aug 31 07:25:24 UTC 2020


 include/rtl/string.hxx  |    2 +-
 include/rtl/ustring.hxx |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 5fca6fefc9cb47737663fbcd04660d2c5bcfde93
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Mon Aug 31 08:30:58 2020 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Mon Aug 31 09:24:45 2020 +0200

    Fix typos in comments
    
    ...introduced with 2e21240f23ac2191a3535d697a7308b29303c67c "Goodbye
    O[U]StringView, welcome O[U]String::Concat".  Thanks to Mike for spotting them!
    
    Change-Id: Ic401c564eac03a34184204f09cb8d0cb6be4e6e5
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101689
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/include/rtl/string.hxx b/include/rtl/string.hxx
index 60485fbdfb96..da75e5eee57c 100644
--- a/include/rtl/string.hxx
+++ b/include/rtl/string.hxx
@@ -1909,7 +1909,7 @@ public:
     // concatenation chain, when neither of the first two e1, e2 is one of our rtl string-related
     // classes (so something like
     //
-    //   OString s = "a" + (b ? std::string_view("c" : "dd");
+    //   OString s = "a" + (b ? std::string_view("c") : std::string_view("dd"));
     //
     // would not compile):
     template<typename T> [[nodiscard]] static
diff --git a/include/rtl/ustring.hxx b/include/rtl/ustring.hxx
index b99cf758ed8b..6c6e92207242 100644
--- a/include/rtl/ustring.hxx
+++ b/include/rtl/ustring.hxx
@@ -3701,7 +3701,7 @@ public:
     // concatenation chain, when neither of the first two e1, e2 is one of our rtl string-related
     // classes (so something like
     //
-    //   OUString s = "a" + (b ? std::u16string_view(u"c" : u"dd");
+    //   OUString s = "a" + (b ? std::u16string_view(u"c") : std::u16string_view(u"dd"));
     //
     // would not compile):
     template<typename T> [[nodiscard]] static


More information about the Libreoffice-commits mailing list