diff options
Diffstat (limited to 'svtools/source/misc/imageresourceaccess.cxx')
-rw-r--r-- | svtools/source/misc/imageresourceaccess.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/misc/imageresourceaccess.cxx b/svtools/source/misc/imageresourceaccess.cxx index 7a44a4d90dee..eef81ec52688 100644 --- a/svtools/source/misc/imageresourceaccess.cxx +++ b/svtools/source/misc/imageresourceaccess.cxx @@ -129,7 +129,7 @@ std::unique_ptr<SvStream> getImageStream(uno::Reference<uno::XComponentContext> // let it create a graphic from the given URL uno::Sequence<beans::PropertyValue> aMediaProperties{ comphelper::makePropertyValue( - "URL", rImageResourceURL) }; + u"URL"_ustr, rImageResourceURL) }; uno::Reference<graphic::XGraphic> xGraphic(xProvider->queryGraphic(aMediaProperties)); OSL_ENSURE(xGraphic.is(), "GraphicAccess::getImageStream: the provider did not give us a graphic object!"); @@ -142,8 +142,8 @@ std::unique_ptr<SvStream> getImageStream(uno::Reference<uno::XComponentContext> new OSeekableInputStreamWrapper(*pMemBuffer), new OSeekableOutputStreamWrapper(*pMemBuffer)); - aMediaProperties = { comphelper::makePropertyValue("OutputStream", xBufferAccess), - comphelper::makePropertyValue("MimeType", OUString("image/png")) }; + aMediaProperties = { comphelper::makePropertyValue(u"OutputStream"_ustr, xBufferAccess), + comphelper::makePropertyValue(u"MimeType"_ustr, u"image/png"_ustr) }; xProvider->storeGraphic(xGraphic, aMediaProperties); pMemBuffer->Seek(0); |