summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/core/doc/docfmt.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/doc/docfmt.cxx b/sw/source/core/doc/docfmt.cxx
index bbdd0b1ea6fb..dbf8fefeda4a 100644
--- a/sw/source/core/doc/docfmt.cxx
+++ b/sw/source/core/doc/docfmt.cxx
@@ -296,10 +296,10 @@ void SwDoc::ResetAttrs( const SwPaM &rRg,
}
// #i96644#
- std::unique_ptr< SwDataChanged > xDataChanged;
+ std::optional< SwDataChanged > oDataChanged;
if ( bSendDataChangedEvents )
{
- xDataChanged.reset( new SwDataChanged( *pPam ) );
+ oDataChanged.emplace( *pPam );
}
SwHistory* pHst = nullptr;
if (GetIDocumentUndoRedo().DoesUndo())
@@ -395,7 +395,7 @@ void SwDoc::ResetAttrs( const SwPaM &rRg,
getIDocumentState().SetModified();
- xDataChanged.reset(); //before delete pPam
+ oDataChanged.reset(); //before delete pPam
if( pPam != &rRg )
delete pPam;