From b731d71c67b864b61f5c08e219140be59c473f53 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Fri, 18 Apr 2014 17:25:30 +0200 Subject: sfx2: Move InitInterface_Impl() method out of SFX_IMPL_INTERFACE. SFX_IMPL_INTERFACE previously looked like a function; where in fact it is several methods defined at once, and only the last one has a body. This is extremely confusing and hard to read; let's kill that nonsense. Change-Id: Ia4ae22eb58b1260c9c827c894f5345693bad49e7 --- sd/source/ui/view/MediaObjectBar.cxx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'sd/source/ui/view/MediaObjectBar.cxx') diff --git a/sd/source/ui/view/MediaObjectBar.cxx b/sd/source/ui/view/MediaObjectBar.cxx index 90cc1e344674..c2bfb8a2d704 100644 --- a/sd/source/ui/view/MediaObjectBar.cxx +++ b/sd/source/ui/view/MediaObjectBar.cxx @@ -17,7 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - #include "MediaObjectBar.hxx" #include #include @@ -48,20 +47,16 @@ using namespace sd; namespace sd { - // - MediaObjectBar - - TYPEINIT1( MediaObjectBar, SfxShell ); +SFX_IMPL_INTERFACE(MediaObjectBar, SfxShell, SdResId(STR_MEDIAOBJECTBARSHELL)) - -SFX_IMPL_INTERFACE( MediaObjectBar, SfxShell, SdResId( STR_MEDIAOBJECTBARSHELL ) ) +void MediaObjectBar::InitInterface_Impl() { } - - MediaObjectBar::MediaObjectBar( ViewShell* pSdViewShell, ::sd::View* pSdView ) : SfxShell( pSdViewShell->GetViewShell() ), mpView( pSdView ), -- cgit