summaryrefslogtreecommitdiff
path: root/xmloff/source/core/xmlimp.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/core/xmlimp.cxx')
-rw-r--r--xmloff/source/core/xmlimp.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmloff/source/core/xmlimp.cxx b/xmloff/source/core/xmlimp.cxx
index 3b6d79934a99..fd2ace1c6bd2 100644
--- a/xmloff/source/core/xmlimp.cxx
+++ b/xmloff/source/core/xmlimp.cxx
@@ -312,7 +312,7 @@ public:
std::unique_ptr< xmloff::RDFaImportHelper > mpRDFaHelper;
- std::unique_ptr< DocumentInfo > mpDocumentInfo;
+ std::optional< DocumentInfo > moDocumentInfo;
SvXMLImport_Impl( uno::Reference< uno::XComponentContext > xContext,
OUString theImplementationName,
@@ -337,12 +337,12 @@ public:
sal_uInt16 getGeneratorVersion( const SvXMLImport& rImport )
{
- if (!mpDocumentInfo)
+ if (!moDocumentInfo)
{
- mpDocumentInfo.reset( new DocumentInfo( rImport ) );
+ moDocumentInfo.emplace( rImport );
}
- return mpDocumentInfo->getGeneratorVersion();
+ return moDocumentInfo->getGeneratorVersion();
}
::comphelper::UnoInterfaceToUniqueIdentifierMapper maInterfaceToIdentifierMapper;