summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-10-14 17:48:36 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-10-14 22:13:38 +0200
commitcf0ed4fb4a610a61332a418f12b547648c3a0130 (patch)
tree8722973e4ae0f3ca82f6372f50e39863c23d62c1 /dbaccess
parentb6d0ca04581eae01817aac18d32a312bc9a2d514 (diff)
More fixes of uses of now-explicit OUString ctor taking raw sal_Unicode pointer
...in Windows-only code, after c927aab29ebfff1ce3ac0b2f27ae343025a9890c "Make the OUString ctors taking raw sal_Unicode pointer/non-const array explicit". Interestingly, these occurrences were accepted by MSVC and only cause errors with clang-cl, so happened to go unnoticed until now. Change-Id: I33e7653e28a21541ef793b4b0750abb6037752db Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104314 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/dlg/adodatalinks.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/source/ui/dlg/adodatalinks.cxx b/dbaccess/source/ui/dlg/adodatalinks.cxx
index 8ba7610fc854..c8bafabf1088 100644
--- a/dbaccess/source/ui/dlg/adodatalinks.cxx
+++ b/dbaccess/source/ui/dlg/adodatalinks.cxx
@@ -92,7 +92,7 @@ OUString PromptNew(long hWnd)
piTmpConnection->Release( );
dlPrompt->Release( );
// Don't we need SysFreeString(_result)?
- return o3tl::toU(_result);
+ return OUString(o3tl::toU(_result));
}
OUString PromptEdit(long hWnd, OUString const & connstr)
@@ -184,7 +184,7 @@ OUString PromptEdit(long hWnd, OUString const & connstr)
dlPrompt->Release( );
CoUninitialize();
// Don't we need SysFreeString(_result)?
- return o3tl::toU(_result);
+ return OUString(o3tl::toU(_result));
}
}