diff options
Diffstat (limited to 'desktop/source/deployment/registry/help/dp_help.cxx')
-rw-r--r-- | desktop/source/deployment/registry/help/dp_help.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/desktop/source/deployment/registry/help/dp_help.cxx b/desktop/source/deployment/registry/help/dp_help.cxx index 49be2a23f87d..1f1eb5f2fe90 100644 --- a/desktop/source/deployment/registry/help/dp_help.cxx +++ b/desktop/source/deployment/registry/help/dp_help.cxx @@ -40,6 +40,7 @@ #include <com/sun/star/ucb/SimpleFileAccess.hpp> #include <com/sun/star/util/XMacroExpander.hpp> #include <optional> +#include <string_view> using namespace ::dp_misc; using namespace ::com::sun::star; @@ -94,9 +95,9 @@ class BackendImpl : public ::dp_registry::backend::PackageRegistryBackend void implCollectXhpFiles( const OUString& aDir, std::vector< OUString >& o_rXhpFileVector ); - ::std::optional<HelpBackendDb::Data> readDataFromDb(OUString const & url); - bool hasActiveEntry(OUString const & url); - bool activateEntry(OUString const & url); + ::std::optional<HelpBackendDb::Data> readDataFromDb(std::u16string_view url); + bool hasActiveEntry(std::u16string_view url); + bool activateEntry(std::u16string_view url); Reference< ucb::XSimpleFileAccess3 > const & getFileAccess(); Reference< ucb::XSimpleFileAccess3 > m_xSFA; @@ -221,7 +222,7 @@ Reference<deployment::XPackage> BackendImpl::bindPackage_( } ::std::optional<HelpBackendDb::Data> BackendImpl::readDataFromDb( - OUString const & url) + std::u16string_view url) { ::std::optional<HelpBackendDb::Data> data; if (m_backendDb) @@ -229,14 +230,14 @@ Reference<deployment::XPackage> BackendImpl::bindPackage_( return data; } -bool BackendImpl::hasActiveEntry(OUString const & url) +bool BackendImpl::hasActiveEntry(std::u16string_view url) { if (m_backendDb) return m_backendDb->hasActiveEntry(url); return false; } -bool BackendImpl::activateEntry(OUString const & url) +bool BackendImpl::activateEntry(std::u16string_view url) { if (m_backendDb) return m_backendDb->activateEntry(url); |