From f1857d76cb4d770fe6e0055bb14fa16e081e93f4 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 27 Feb 2012 16:18:34 +0000 Subject: SfxStyleSheet needs a default ctor due to use of ImplInheritanceHelper2 SfxStyleSheet needs a default ctor, though its never called. rearrange things a little so we can have an empty ctor without pulling in a bunch of code which is never executed --- sd/source/core/stlsheet.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sd/source') diff --git a/sd/source/core/stlsheet.cxx b/sd/source/core/stlsheet.cxx index 373b8d105d25..d88e2e0689bf 100644 --- a/sd/source/core/stlsheet.cxx +++ b/sd/source/core/stlsheet.cxx @@ -209,7 +209,7 @@ sal_Bool SdStyleSheet::SetParent(const String& rParentName) { if( rParentName.Len() ) { - SfxStyleSheetBase* pStyle = rPool.Find(rParentName, nFamily); + SfxStyleSheetBase* pStyle = pPool->Find(rParentName, nFamily); if (pStyle) { bResult = sal_True; @@ -402,7 +402,7 @@ SdStyleSheet* SdStyleSheet::GetRealStyleSheet() const String aRealStyle; String aSep( RTL_CONSTASCII_USTRINGPARAM( SD_LT_SEPARATOR )); SdStyleSheet* pRealStyle = NULL; - SdDrawDocument* pDoc = ((SdStyleSheetPool&) rPool).GetDoc(); + SdDrawDocument* pDoc = ((SdStyleSheetPool*)pPool)->GetDoc(); ::sd::DrawViewShell* pDrawViewShell = 0; @@ -433,7 +433,7 @@ SdStyleSheet* SdStyleSheet::GetRealStyleSheet() const { // Noch keine Seite vorhanden // Dieses kann beim Aktualisieren vonDokumentvorlagen vorkommen - SfxStyleSheetIterator aIter(&rPool, SD_STYLE_FAMILY_MASTERPAGE); + SfxStyleSheetIterator aIter(pPool, SD_STYLE_FAMILY_MASTERPAGE); SfxStyleSheetBase* pSheet = aIter.First(); if( pSheet ) aRealStyle = pSheet->GetName(); @@ -479,12 +479,12 @@ SdStyleSheet* SdStyleSheet::GetRealStyleSheet() const } aRealStyle += aInternalName; - pRealStyle = static_cast< SdStyleSheet* >( rPool.Find(aRealStyle, SD_STYLE_FAMILY_MASTERPAGE) ); + pRealStyle = static_cast< SdStyleSheet* >( pPool->Find(aRealStyle, SD_STYLE_FAMILY_MASTERPAGE) ); #ifdef DBG_UTIL if( !pRealStyle ) { - SfxStyleSheetIterator aIter(&rPool, SD_STYLE_FAMILY_MASTERPAGE); + SfxStyleSheetIterator aIter(pPool, SD_STYLE_FAMILY_MASTERPAGE); if( aIter.Count() > 0 ) // StyleSheet not found, but pool already loaded DBG_ASSERT(pRealStyle, "Internal StyleSheet not found"); @@ -540,7 +540,7 @@ SdStyleSheet* SdStyleSheet::GetPseudoStyleSheet() const } } - pPseudoStyle = static_cast(rPool.Find(aStyleName, SD_STYLE_FAMILY_PSEUDO)); + pPseudoStyle = static_cast(pPool->Find(aStyleName, SD_STYLE_FAMILY_PSEUDO)); DBG_ASSERT(pPseudoStyle, "PseudoStyleSheet nicht gefunden"); return pPseudoStyle; -- cgit