summaryrefslogtreecommitdiff
path: root/ucb/source
diff options
context:
space:
mode:
Diffstat (limited to 'ucb/source')
-rw-r--r--ucb/source/ucp/package/pkgcontent.cxx8
-rw-r--r--ucb/source/ucp/package/pkguri.cxx8
2 files changed, 12 insertions, 4 deletions
diff --git a/ucb/source/ucp/package/pkgcontent.cxx b/ucb/source/ucp/package/pkgcontent.cxx
index cf08c8bdfaaf..a22ab7bdaaed 100644
--- a/ucb/source/ucp/package/pkgcontent.cxx
+++ b/ucb/source/ucp/package/pkgcontent.cxx
@@ -22,6 +22,10 @@
TODO
**************************************************************************
*************************************************************************/
+#include <sal/config.h>
+
+#include <string_view>
+
#include <osl/diagnose.h>
#include <rtl/ustring.hxx>
@@ -224,8 +228,8 @@ OUString Content::getContentType(
return ( OUString::Concat("application/")
+ aScheme
+ ( bFolder
- ? OUStringLiteral(u"-folder")
- : OUStringLiteral(u"-stream") ) );
+ ? std::u16string_view(u"-folder")
+ : std::u16string_view(u"-stream") ) );
}
diff --git a/ucb/source/ucp/package/pkguri.cxx b/ucb/source/ucp/package/pkguri.cxx
index dfcde478938b..9796ecc34c73 100644
--- a/ucb/source/ucp/package/pkguri.cxx
+++ b/ucb/source/ucp/package/pkguri.cxx
@@ -24,6 +24,10 @@
*************************************************************************/
+#include <sal/config.h>
+
+#include <string_view>
+
#include <comphelper/storagehelper.hxx>
#include "../inc/urihelper.hxx"
@@ -109,8 +113,8 @@ void PackageUri::init() const
{
m_aParam +=
( !m_aParam.isEmpty()
- ? OUStringLiteral( u"&purezip" )
- : OUStringLiteral( u"?purezip" ) );
+ ? std::u16string_view( u"&purezip" )
+ : std::u16string_view( u"?purezip" ) );
}
aPureUri = aPureUri.replaceAt( 0,