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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user