diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-27 12:07:39 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-27 12:43:46 +0000 |
commit | 337e19bf469c0a7a10fabd07fa6ae13f77075e36 (patch) | |
tree | cbbb7c3f05eae32cf028c3009ab8f1b39e2bf5cb /sfx2/source/doc/docundomanager.cxx | |
parent | 40241c2aec0e88cbb51b802bda2db458e14f792f (diff) |
loplugin:expandablemethods in sfx2
Change-Id: I5dcc9e6e7fef210f85a01057ddf59f8de14b847d
Reviewed-on: https://gerrit.libreoffice.org/30320
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/doc/docundomanager.cxx')
-rw-r--r-- | sfx2/source/doc/docundomanager.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sfx2/source/doc/docundomanager.cxx b/sfx2/source/doc/docundomanager.cxx index f37a1207ddfa..290b861a57bf 100644 --- a/sfx2/source/doc/docundomanager.cxx +++ b/sfx2/source/doc/docundomanager.cxx @@ -79,8 +79,6 @@ namespace sfx2 { }; - SfxObjectShell* getObjectShell() { return rAntiImpl.getBaseModel().GetObjectShell(); } - // IUndoManagerImplementation virtual ::svl::IUndoManager& getImplUndoManager() override; virtual Reference< XUndoManager > getThis() override; @@ -134,7 +132,7 @@ namespace sfx2 { SfxModelGuard aGuard( rAntiImpl ); - const SfxObjectShell* pDocShell = getObjectShell(); + const SfxObjectShell* pDocShell = rAntiImpl.getBaseModel().GetObjectShell(); ENSURE_OR_THROW( pDocShell != nullptr, "lcl_invalidateUndo: no access to the doc shell!" ); SfxViewFrame* pViewFrame = SfxViewFrame::GetFirst( pDocShell ); while ( pViewFrame ) |