diff options
Diffstat (limited to 'sfx2/source')
-rw-r--r-- | sfx2/source/dialog/templdlg.cxx | 6 | ||||
-rw-r--r-- | sfx2/source/inc/templdgi.hxx | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx index ad0797c55e98..033141e5f0c4 100644 --- a/sfx2/source/dialog/templdlg.cxx +++ b/sfx2/source/dialog/templdlg.cxx @@ -929,13 +929,13 @@ const SfxStyleFamilyItem *SfxCommonTemplateDialog_Impl::GetFamilyItem_Impl() con return nullptr; } -SfxStyleSheetBase *SfxCommonTemplateDialog_Impl::GetSelectedStyle() const +void SfxCommonTemplateDialog_Impl::GetSelectedStyle() const { if (!IsInitialized() || !pStyleSheetPool || !HasSelectedStyle()) - return nullptr; + return; const OUString aTemplName( GetSelectedEntry() ); const SfxStyleFamilyItem* pItem = GetFamilyItem_Impl(); - return pStyleSheetPool->Find( aTemplName, pItem->GetFamily() ); + pStyleSheetPool->Find( aTemplName, pItem->GetFamily() ); } /** diff --git a/sfx2/source/inc/templdgi.hxx b/sfx2/source/inc/templdgi.hxx index ab0d4d18ef35..d3b6deb2e096 100644 --- a/sfx2/source/inc/templdgi.hxx +++ b/sfx2/source/inc/templdgi.hxx @@ -265,7 +265,7 @@ protected: void SelectStyle( const OUString& rStyle ); bool HasSelectedStyle() const; - SfxStyleSheetBase* GetSelectedStyle() const; + void GetSelectedStyle() const; void FillTreeBox(); void Update_Impl(); void UpdateFamily_Impl(); |