summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-01-10 15:29:22 +0100
committerStephan Bergmann <sbergman@redhat.com>2019-01-10 22:22:46 +0100
commitc16156f78664cf62c1ccc0041370674faf4c0196 (patch)
treea9031b3f3c65b5ca260f5184003ae600aa84bb8d /cui
parent6856da30665705be6380e84cf55de954c41f15d1 (diff)
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@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/options/optinet2.cxx5
1 files changed, 3 insertions, 2 deletions
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;
}
}