diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-12-06 10:36:41 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-12-06 14:19:48 +0100 |
commit | b0e4f29560671d48c3943b6d0165c91c7ba91fd5 (patch) | |
tree | 3a722a8671b6d6562e1089f471f16ed786d1a0ad /ucb | |
parent | 606b731289631d6f58dea7745d0d12830f9033bc (diff) |
Avoid relying on OString(char const *) ctor's undocumented behavior
...of treating nullptr like an empty string
Change-Id: I41b8b88f27ed3d3c404781f897952b7d1e0e01e1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107279
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/webdav-neon/NeonUri.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/ucb/source/ucp/webdav-neon/NeonUri.cxx b/ucb/source/ucp/webdav-neon/NeonUri.cxx index c1c263421de4..f3f142123a40 100644 --- a/ucb/source/ucp/webdav-neon/NeonUri.cxx +++ b/ucb/source/ucp/webdav-neon/NeonUri.cxx @@ -49,24 +49,24 @@ using namespace webdav_ucp; namespace { const ne_uri g_sUriDefaultsHTTP = { const_cast<char *>("http"), - nullptr, - nullptr, + const_cast<char *>(""), + const_cast<char *>(""), DEFAULT_HTTP_PORT, - nullptr, + const_cast<char *>(""), nullptr, nullptr }; const ne_uri g_sUriDefaultsHTTPS = { const_cast<char *>("https"), - nullptr, - nullptr, + const_cast<char *>(""), + const_cast<char *>(""), DEFAULT_HTTPS_PORT, - nullptr, + const_cast<char *>(""), nullptr, nullptr }; const ne_uri g_sUriDefaultsFTP = { const_cast<char *>("ftp"), - nullptr, - nullptr, + const_cast<char *>(""), + const_cast<char *>(""), DEFAULT_FTP_PORT, - nullptr, + const_cast<char *>(""), nullptr, nullptr }; } // namespace |