From a5bbbba632c6aecb8cf24d906b05f145dea1fc41 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 5 May 2020 10:57:59 +0100 Subject: make the family and mask explicit in SfxStyleSheetBasePool::First MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I36655b65ca00e5f7b8779a28d4a1778c8e35dc4e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93461 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- sd/source/core/drawdoc3.cxx | 2 +- sd/source/ui/func/fuhhconv.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sd/source') diff --git a/sd/source/core/drawdoc3.cxx b/sd/source/core/drawdoc3.cxx index fc4a1fd548b3..91e833156256 100644 --- a/sd/source/core/drawdoc3.cxx +++ b/sd/source/core/drawdoc3.cxx @@ -1515,7 +1515,7 @@ void SdDrawDocument::SetMasterPage(sal_uInt16 nSdPageNum, static_cast( mxStyleSheetPool.get())->SetSearchMask(SfxStyleFamily::Page); StyleSheetCopyResultVector aCreatedStyles; // List of created stylesheets - SfxStyleSheetBase* pHisSheet = pSourceStyleSheetPool->First(); + SfxStyleSheetBase* pHisSheet = pSourceStyleSheetPool->First(SfxStyleFamily::Page); while (pHisSheet) { diff --git a/sd/source/ui/func/fuhhconv.cxx b/sd/source/ui/func/fuhhconv.cxx index eea58f039c93..45c29cc2c21e 100644 --- a/sd/source/ui/func/fuhhconv.cxx +++ b/sd/source/ui/func/fuhhconv.cxx @@ -155,7 +155,7 @@ void FuHangulHanjaConversion::ConvertStyles( LanguageType nTargetLanguage, const if( !pStyleSheetPool ) return; - SfxStyleSheetBase* pStyle = pStyleSheetPool->First(); + SfxStyleSheetBase* pStyle = pStyleSheetPool->First(pStyleSheetPool->GetSearchFamily(), pStyleSheetPool->GetSearchMask()); while( pStyle ) { SfxItemSet& rSet = pStyle->GetItemSet(); -- cgit