summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shell/source/backends/kf5be/kfaccess.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/shell/source/backends/kf5be/kfaccess.cxx b/shell/source/backends/kf5be/kfaccess.cxx
index 93fe1ed49b20..498fb9e1efb5 100644
--- a/shell/source/backends/kf5be/kfaccess.cxx
+++ b/shell/source/backends/kf5be/kfaccess.cxx
@@ -47,10 +47,9 @@ namespace uno = css::uno;
namespace
{
-OUString fromQStringToOUString(QString const& s)
+OUString fromQStringToOUString(const QString& s)
{
- // Conversion from QString size()'s int to OUString's sal_Int32 should be non-narrowing:
- return { reinterpret_cast<char16_t const*>(s.utf16()), s.size() };
+ return OUString(reinterpret_cast<const sal_Unicode*>(s.data()), s.length());
}
}