diff options
author | Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org> | 2023-04-16 14:06:24 +0200 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org> | 2023-05-01 20:51:02 +0200 |
commit | 1dc1595824509c58f86f819673719096f771f417 (patch) | |
tree | 37166d3a11893df64c68ea2094c0bc98e68d016a /sw/source/uibase | |
parent | a6aa71f6f3357f4fcd06c2307882733606af37ca (diff) |
replace SwFrameFormats with sw::FrameFormats<SwFrameFormat*>
- SwFrameFormats is now completely replaced by stronger typed
sw::FrameFormats<>, thus remove it
Change-Id: I7e655a83ba8cf01d1e68dccd1804c167e8daca9c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150455
Tested-by: Jenkins
Reviewed-by: Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org>
Diffstat (limited to 'sw/source/uibase')
-rw-r--r-- | sw/source/uibase/app/docstyle.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/uibase/app/docstyle.cxx b/sw/source/uibase/app/docstyle.cxx index 6e0ffc5d1cdd..b7d1eb9e0682 100644 --- a/sw/source/uibase/app/docstyle.cxx +++ b/sw/source/uibase/app/docstyle.cxx @@ -1757,8 +1757,7 @@ static void lcl_SaveStyles( SfxStyleFamily nFamily, std::vector<void*>& rArr, Sw break; case SfxStyleFamily::Frame: { - const SwFrameFormats& rTable = *rDoc.GetFrameFormats(); - for(auto const& rFrame: rTable) + for(auto const& rFrame: *rDoc.GetFrameFormats()) { rArr.push_back(rFrame); } @@ -1828,8 +1827,7 @@ static void lcl_DeleteInfoStyles( SfxStyleFamily nFamily, std::vector<void*> con case SfxStyleFamily::Frame: { std::deque<SwFrameFormat*> aDelArr; - const SwFrameFormats& rTable = *rDoc.GetFrameFormats(); - for( auto const& rFrame: rTable ) + for(auto const& rFrame: *rDoc.GetFrameFormats()) { if( !lcl_Contains( rArr, rFrame )) aDelArr.push_front( rFrame ); |