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(s.utf16()), s.size() }; + return OUString(reinterpret_cast(s.data()), s.length()); } }