summaryrefslogtreecommitdiff
path: root/chart2/source/controller/main/UndoGuard.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source/controller/main/UndoGuard.hxx')
-rw-r--r--chart2/source/controller/main/UndoGuard.hxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/chart2/source/controller/main/UndoGuard.hxx b/chart2/source/controller/main/UndoGuard.hxx
index 0d9fa75386e4..90443a247af4 100644
--- a/chart2/source/controller/main/UndoGuard.hxx
+++ b/chart2/source/controller/main/UndoGuard.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CHART2_SOURCE_CONTROLLER_MAIN_UNDOGUARD_HXX
-#define INCLUDED_CHART2_SOURCE_CONTROLLER_MAIN_UNDOGUARD_HXX
+#pragma once
#include "ChartModelClone.hxx"
@@ -38,7 +37,7 @@ class UndoGuard
{
public:
explicit UndoGuard(
- const OUString& i_undoMessage,
+ OUString i_undoMessage,
const css::uno::Reference< css::document::XUndoManager > & i_undoManager,
const ModelFacet i_facet = E_MODEL
);
@@ -54,7 +53,7 @@ private:
void discardSnapshot();
private:
- const css::uno::Reference< css::frame::XModel > m_xChartModel;
+ rtl::Reference<::chart::ChartModel> m_xChartModel;
const css::uno::Reference< css::document::XUndoManager > m_xUndoManager;
std::shared_ptr< ChartModelClone > m_pDocumentSnapshot;
@@ -112,7 +111,5 @@ private:
};
}
-// INCLUDED_CHART2_SOURCE_CONTROLLER_MAIN_UNDOGUARD_HXX
-#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */