diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-12-12 09:41:38 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-12-12 11:49:03 +0000 |
commit | c928840ef2a41ca373ad9070d8e9160c216260da (patch) | |
tree | c1b7ff24bbeb9708ed4f6a4506f83a48333b9665 /include | |
parent | 7320714922b2d68f668283747faf1b98e7d2b15b (diff) |
leave the deliberately unused, not-for-use method inline
doing so means code is not generated for it seeing as its not used, moving it
out means code is generated for it and its detected as unused code
Change-Id: I72edc89446bdfac50069e0b509fc7f90540e0d4a
Diffstat (limited to 'include')
-rw-r--r-- | include/svl/style.hxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/include/svl/style.hxx b/include/svl/style.hxx index 34ba57b73c0a..904ac8589fa5 100644 --- a/include/svl/style.hxx +++ b/include/svl/style.hxx @@ -274,8 +274,6 @@ public: SfxStyleSheetBase& Add( const SfxStyleSheetBase& ); }; - - class SVL_DLLPUBLIC SfxStyleSheet: public SfxStyleSheetBase, public SfxListener, public SfxBroadcaster, public svl::StyleSheetUser { @@ -292,11 +290,14 @@ public: virtual bool SetParent( const OUString& ) SAL_OVERRIDE; protected: - SfxStyleSheet(); // do not use! needed by MSVC at compile time to satisfy ImplInheritanceHelper2 + SfxStyleSheet() // do not use! needed by MSVC at compile time to satisfy ImplInheritanceHelper2 + : SfxStyleSheetBase(OUString("dummy"), NULL, SFX_STYLE_FAMILY_ALL, 0) + { + assert(false); + } virtual ~SfxStyleSheet(); -}; - +}; class SVL_DLLPUBLIC SfxStyleSheetPool: public SfxStyleSheetBasePool { |