summaryrefslogtreecommitdiff
path: root/chart2/source/controller/main/UndoActions.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source/controller/main/UndoActions.cxx')
-rw-r--r--chart2/source/controller/main/UndoActions.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/controller/main/UndoActions.cxx b/chart2/source/controller/main/UndoActions.cxx
index 812e059e7980..301bef28279c 100644
--- a/chart2/source/controller/main/UndoActions.cxx
+++ b/chart2/source/controller/main/UndoActions.cxx
@@ -65,7 +65,7 @@ OUString SAL_CALL UndoElement::getTitle()
void UndoElement::impl_toggleModelState()
{
// get a snapshot of the current state of our model
- std::shared_ptr< ChartModelClone > pNewClone( new ChartModelClone( m_xDocumentModel, m_pModelClone->getFacet() ) );
+ auto pNewClone = std::make_shared<ChartModelClone>( m_xDocumentModel, m_pModelClone->getFacet() );
// apply the previous snapshot to our model
m_pModelClone->applyToModel( m_xDocumentModel );
// remember the new snapshot, for the next toggle
684050294a1391cd32425b7837'>loplugin:stringviewNoel 2020-11-11disable O(U)String::concat for internal codeNoel Grandin 2020-08-23Fix typo in codeAndrea Gelmini 2020-08-21Fix typosAndrea Gelmini 2020-08-18Fix typosAndrea Gelmini 2020-07-23Silence GCC 11 trunk -Werror=nonnull involving dynamic_castStephan Bergmann 2020-07-02Upcoming improved loplugin:staticanonymous -> redundantstatic: unodevtoolsStephan Bergmann 2020-05-10compact namespace in ucb..uuiNoel Grandin 2020-01-31clang-tidy modernize-concat-nested-namespaceNoel Grandin 2019-12-24sal_Char->char in unoxmlNoel Grandin 2019-10-08loplugin:redundantpointerops simplify *p.get()Noel Grandin 2019-08-12Fix typosAndrea Gelmini 2019-08-09Fix typosAndrea Gelmini 2019-05-10an uno -> a unoCaolán McNamara 2019-04-28tdf#120703 PVS: fix cleanup checksMike Kaganski 2019-04-19optimise find/insert patternNoel Grandin 2019-04-05Revert "Get rid of b2u/u2b helpers; use OUString's toUtf8/fromUtf8 instead"Mike Kaganski 2019-04-05tdf#120703: partially revert commit 85456fae54029edd26df2277a9eec5e2fe3d9739Mike Kaganski 2019-04-04Get rid of b2u/u2b helpers; use OUString's toUtf8/fromUtf8 insteadMike Kaganski 2019-04-01tdf#120703 PVS: Silence V522 warningsMike Kaganski 2019-01-27Take advantage of known index to avoid an OUString copyMatteo Casalin 2019-01-27Use optimized OUString concatenationMatteo Casalin 2018-11-29remove unnecessary "if (!empty()" checks before loopsNoel Grandin 2018-10-24remove more rtl::OUString and OString prefixesNoel Grandin 2018-10-24clang-tidy performance-unnecessary-copy-init in test..xmlscriptNoel Grandin 2018-10-17Simplify containers iterations in unodevtools, unoidlArkadiy Illarionov 2018-09-17New loplugin:externalStephan Bergmann 2018-08-02Add missing sal/log.hxx headersGabor Kelemen