diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-11-08 11:36:27 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-11-08 11:31:36 +0100 |
commit | 2ab40e9ecc9092e2227a30e43a7fc319f8632a17 (patch) | |
tree | 4a81335b8b08e02273ad32ec39da6f92e2469740 /desktop | |
parent | 7cbc8a8d866225f513b90b69bcc29cb6f230d65b (diff) |
use more OUStringLiteral in MediaDescriptor
Change-Id: I0567d103db8db401c737fed98483912a39352929
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124835
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/app/dispatchwatcher.cxx | 4 | ||||
-rw-r--r-- | desktop/source/lib/init.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/desktop/source/app/dispatchwatcher.cxx b/desktop/source/app/dispatchwatcher.cxx index a3c5bc40d5c4..a0b7e370b1b1 100644 --- a/desktop/source/app/dispatchwatcher.cxx +++ b/desktop/source/app/dispatchwatcher.cxx @@ -364,7 +364,7 @@ bool DispatchWatcher::executeDispatchRequests( const std::vector<DispatchRequest if ( !aDispatchRequest.aPreselectedFactory.isEmpty() ) { - aArgs.emplace_back(utl::MediaDescriptor::PROP_DOCUMENTSERVICE(), 0, + aArgs.emplace_back(utl::MediaDescriptor::PROP_DOCUMENTSERVICE, 0, Any(aDispatchRequest.aPreselectedFactory), PropertyState_DIRECT_VALUE); } @@ -590,7 +590,7 @@ bool DispatchWatcher::executeDispatchRequests( const std::vector<DispatchRequest if ( xModel.is() ) { utl::MediaDescriptor aMediaDesc( xModel->getArgs() ); - aDocService = aMediaDesc.getUnpackedValueOrDefault(utl::MediaDescriptor::PROP_DOCUMENTSERVICE(), OUString() ); + aDocService = aMediaDesc.getUnpackedValueOrDefault(utl::MediaDescriptor::PROP_DOCUMENTSERVICE, OUString() ); } aFilter = impl_GuessFilter( aOutFile, aDocService ); } diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index fe6fd88b1c7b..e748aa006411 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -2931,7 +2931,7 @@ static int doc_saveAs(LibreOfficeKitDocument* pThis, const char* sUrl, const cha auto aFilteredOptionSeq = comphelper::containerToSequence<OUString>(aFilteredOptionVec); aFilterOptions = comphelper::string::convertCommaSeparated(aFilteredOptionSeq); - aSaveMediaDescriptor[MediaDescriptor::PROP_FILTEROPTIONS()] <<= aFilterOptions; + aSaveMediaDescriptor[MediaDescriptor::PROP_FILTEROPTIONS] <<= aFilterOptions; comphelper::SequenceAsHashMap aFilterDataMap; @@ -2956,7 +2956,7 @@ static int doc_saveAs(LibreOfficeKitDocument* pThis, const char* sUrl, const cha new LOKInteractionHandler("saveas", gImpl, pDocument)); uno::Reference<task::XInteractionHandler2> const xInteraction(pInteraction); - aSaveMediaDescriptor[MediaDescriptor::PROP_INTERACTIONHANDLER()] <<= xInteraction; + aSaveMediaDescriptor[MediaDescriptor::PROP_INTERACTIONHANDLER] <<= xInteraction; } |