[Libreoffice-commits] core.git: cui/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Jan 10 21:23:16 UTC 2019
cui/source/options/optinet2.cxx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit c16156f78664cf62c1ccc0041370674faf4c0196
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Thu Jan 10 15:29:22 2019 +0100
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Thu Jan 10 22:22:46 2019 +0100
o3tl::string_view -> std::string_view (in cui)
Change-Id: I7899802f09d16cfa2c8821782feed4fdfa653dd0
Reviewed-on: https://gerrit.libreoffice.org/66114
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/cui/source/options/optinet2.cxx b/cui/source/options/optinet2.cxx
index 8124c7d8998c..59d0dd663236 100644
--- a/cui/source/options/optinet2.cxx
+++ b/cui/source/options/optinet2.cxx
@@ -19,7 +19,8 @@
#include <sal/config.h>
-#include <o3tl/string_view.hxx>
+#include <string_view>
+
#include <officecfg/Inet.hxx>
#include <officecfg/Office/Common.hxx>
#include <officecfg/Office/Security.hxx>
@@ -115,7 +116,7 @@ bool isValidPort(OUString const & value) {
return true;
}
// Overflow in OUString::toUInt64 returns 0, so need to check value contains only zeroes:
- return o3tl::u16string_view(value).find_first_not_of(u'0') == o3tl::u16string_view::npos;
+ return std::u16string_view(value).find_first_not_of(u'0') == std::u16string_view::npos;
}
}
More information about the Libreoffice-commits
mailing list