summaryrefslogtreecommitdiff
path: root/embeddedobj
diff options
context:
space:
mode:
Diffstat (limited to 'embeddedobj')
-rw-r--r--embeddedobj/source/commonembedding/persistence.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/embeddedobj/source/commonembedding/persistence.cxx b/embeddedobj/source/commonembedding/persistence.cxx
index b32d07f1c59c..e49e5169cc79 100644
--- a/embeddedobj/source/commonembedding/persistence.cxx
+++ b/embeddedobj/source/commonembedding/persistence.cxx
@@ -190,10 +190,13 @@ static void TransferMediaType( const uno::Reference< embed::XStorage >& i_rSourc
static uno::Reference< util::XCloseable > CreateDocument( const uno::Reference< uno::XComponentContext >& _rxContext,
const OUString& _rDocumentServiceName, bool _bEmbeddedScriptSupport, const bool i_bDocumentRecoverySupport )
{
+ static constexpr OUStringLiteral sEmbeddedObject = u"EmbeddedObject";
+ static constexpr OUStringLiteral sEmbeddedScriptSupport = u"EmbeddedScriptSupport";
+ static constexpr OUStringLiteral sDocumentRecoverySupport = u"DocumentRecoverySupport";
::comphelper::NamedValueCollection aArguments;
- aArguments.put( "EmbeddedObject", true );
- aArguments.put( "EmbeddedScriptSupport", _bEmbeddedScriptSupport );
- aArguments.put( "DocumentRecoverySupport", i_bDocumentRecoverySupport );
+ aArguments.put( sEmbeddedObject, true );
+ aArguments.put( sEmbeddedScriptSupport, _bEmbeddedScriptSupport );
+ aArguments.put( sDocumentRecoverySupport, i_bDocumentRecoverySupport );
uno::Reference< uno::XInterface > xDocument;
try