diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2017-11-05 08:39:47 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2017-11-05 11:40:33 +0100 |
commit | e567694246d99a2a99c4079b04ed2ad8cd5ed785 (patch) | |
tree | 006797c2b3e74e1a3e37c4739b0b5e513041dd2f /desktop/source | |
parent | ca2aaa2b9f4ce69d05d415e13451ae6a6030f032 (diff) |
Remove GetNextSubset and create GetSubsetMap
To avoid to store an iterator and simplify loops
Change-Id: I9b160714125176841961a56905d81dcb876c68b6
Reviewed-on: https://gerrit.libreoffice.org/44326
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'desktop/source')
-rw-r--r-- | desktop/source/lib/init.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 906e271f5c30..96b6ab2e2399 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -2525,10 +2525,10 @@ static char* getFontSubset (const OString& aFontName) aDevice->GetFontCharMap(xFontCharMap); SubsetMap aSubMap(xFontCharMap); - for(const Subset* pItSub = aSubMap.GetNextSubset(true); pItSub; pItSub = aSubMap.GetNextSubset(false)) + for (auto const& subset : aSubMap.GetSubsetMap()) { boost::property_tree::ptree aChild; - aChild.put("", static_cast<int>(ublock_getCode(pItSub->GetRangeMin()))); + aChild.put("", static_cast<int>(ublock_getCode(subset.GetRangeMin()))); aValues.push_back(std::make_pair("", aChild)); } } |