Kaydet (Commit) c16156f7 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

o3tl::string_view -> std::string_view (in cui)

Change-Id: I7899802f09d16cfa2c8821782feed4fdfa653dd0
Reviewed-on: https://gerrit.libreoffice.org/66114
Tested-by: Jenkins
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 6856da30
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment