From aded98ce3d7a4189a4fa30989505da9427abc83b Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Wed, 25 Oct 2017 22:58:59 +0200 Subject: 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 Reviewed-by: Noel Grandin --- svtools/source/config/fontsubstconfig.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'svtools') 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; -- cgit