diff options
author | Jelle van der Waa <jelle@vdwaa.nl> | 2013-07-28 14:55:43 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-07-29 11:34:33 +0000 |
commit | dd9c97d587d2a295d44e8685d253d30542a2c85a (patch) | |
tree | 8736a3552ac8c56fc9102a6518072c68295c4a25 /chart2/source/controller/main/UndoGuard.cxx | |
parent | 05bd5b46ea659df95fb6f0c895c090629b541e0f (diff) |
fdo#62475 removed pointless comments
Change-Id: I3f5e86dba2df950aeb12c895f52d99274c0959aa
Reviewed-on: https://gerrit.libreoffice.org/5148
Reviewed-by: Luboš Luňák <l.lunak@suse.cz>
Tested-by: Luboš Luňák <l.lunak@suse.cz>
Diffstat (limited to 'chart2/source/controller/main/UndoGuard.cxx')
-rw-r--r-- | chart2/source/controller/main/UndoGuard.cxx | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/chart2/source/controller/main/UndoGuard.cxx b/chart2/source/controller/main/UndoGuard.cxx index 01727c88b4a7..3617366e574b 100644 --- a/chart2/source/controller/main/UndoGuard.cxx +++ b/chart2/source/controller/main/UndoGuard.cxx @@ -17,7 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - #include "UndoGuard.hxx" #include "ChartModelClone.hxx" #include "UndoActions.hxx" @@ -34,8 +33,6 @@ using ::com::sun::star::uno::Sequence; namespace chart { -//----------------------------------------------------------------------------- - UndoGuard::UndoGuard( const OUString& i_undoString, const uno::Reference< document::XUndoManager > & i_undoManager, const ModelFacet i_facet ) :m_xChartModel( i_undoManager->getParent(), uno::UNO_QUERY_THROW ) @@ -47,16 +44,12 @@ UndoGuard::UndoGuard( const OUString& i_undoString, const uno::Reference< docume m_pDocumentSnapshot.reset( new ChartModelClone( m_xChartModel, i_facet ) ); } -//----------------------------------------------------------------------------- - UndoGuard::~UndoGuard() { if ( !!m_pDocumentSnapshot ) discardSnapshot(); } -//----------------------------------------------------------------------------- - void UndoGuard::commit() { if ( !m_bActionPosted && !!m_pDocumentSnapshot ) @@ -75,8 +68,6 @@ void UndoGuard::commit() m_bActionPosted = true; } -//----------------------------------------------------------------------------- - void UndoGuard::rollback() { ENSURE_OR_RETURN_VOID( !!m_pDocumentSnapshot, "no snapshot!" ); @@ -84,7 +75,6 @@ void UndoGuard::rollback() discardSnapshot(); } -//----------------------------------------------------------------------------- void UndoGuard::discardSnapshot() { ENSURE_OR_RETURN_VOID( !!m_pDocumentSnapshot, "no snapshot!" ); @@ -92,8 +82,6 @@ void UndoGuard::discardSnapshot() m_pDocumentSnapshot.reset(); } -//----------------------------------------------------------------------------- - UndoLiveUpdateGuard::UndoLiveUpdateGuard( const OUString& i_undoString, const uno::Reference< document::XUndoManager >& i_undoManager ) :UndoGuard( i_undoString, i_undoManager, E_MODEL ) { @@ -105,8 +93,6 @@ UndoLiveUpdateGuard::~UndoLiveUpdateGuard() rollback(); } -//----------------------------------------------------------------------------- - UndoLiveUpdateGuardWithData::UndoLiveUpdateGuardWithData( const OUString& i_undoString, const uno::Reference< document::XUndoManager >& i_undoManager ) :UndoGuard( i_undoString, i_undoManager, E_MODEL_WITH_DATA ) @@ -119,16 +105,12 @@ UndoLiveUpdateGuardWithData::~UndoLiveUpdateGuardWithData() rollback(); } -//----------------------------------------------------------------------------- - UndoGuardWithSelection::UndoGuardWithSelection( const OUString& i_undoString, const uno::Reference< document::XUndoManager >& i_undoManager ) :UndoGuard( i_undoString, i_undoManager, E_MODEL_WITH_SELECTION ) { } -//----------------------------------------------------------------------------- - UndoGuardWithSelection::~UndoGuardWithSelection() { if ( !isActionPosted() ) @@ -151,8 +133,6 @@ HiddenUndoContext::HiddenUndoContext( const Reference< document::XUndoManager > } } -//----------------------------------------------------------------------------- - HiddenUndoContext::~HiddenUndoContext() { try |