summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2017-10-25 22:58:59 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-10-26 08:55:23 +0200
commitaded98ce3d7a4189a4fa30989505da9427abc83b (patch)
tree494514c970c1d70b6373ceb9b22b0b11b595e8d7 /svtools
parent4130a5c4b07b5d440d05ab7df0d593373cd76044 (diff)
Refactor font substitute removing (vcl/svtools)
+ replace list by vector for maFontSubstList Change-Id: I4d5668611212358c759fa5cf26f5341311551298 Reviewed-on: https://gerrit.libreoffice.org/43855 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/config/fontsubstconfig.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/svtools/source/config/fontsubstconfig.cxx b/svtools/source/config/fontsubstconfig.cxx
index a9b42a6ffc52..7db21e021ba2 100644
--- a/svtools/source/config/fontsubstconfig.cxx
+++ b/svtools/source/config/fontsubstconfig.cxx
@@ -161,10 +161,7 @@ void SvtFontSubstConfig::Apply()
OutputDevice::BeginFontSubstitution();
// remove old substitutions
- sal_uInt16 nOldCount = OutputDevice::GetFontSubstituteCount();
-
- while (nOldCount)
- OutputDevice::RemoveFontSubstitute(--nOldCount);
+ OutputDevice::RemoveFontsSubstitute();
// read new substitutions
sal_Int32 nCount = IsEnabled() ? SubstitutionCount() : 0;