From 49e13aa41895e8562d83cff189ab6a78d5d902aa Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 19 May 2015 13:12:35 +0200 Subject: convert FONT_SUBSTITUTE constants to scoped enum Change-Id: I8312f0117f33349218a09ccdfea946c66ceb1b3e --- svtools/source/config/fontsubstconfig.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'svtools/source/config/fontsubstconfig.cxx') diff --git a/svtools/source/config/fontsubstconfig.cxx b/svtools/source/config/fontsubstconfig.cxx index 6d7e3373376d..8f37ba836ee7 100644 --- a/svtools/source/config/fontsubstconfig.cxx +++ b/svtools/source/config/fontsubstconfig.cxx @@ -178,12 +178,12 @@ void SvtFontSubstConfig::Apply() for (sal_Int32 i = 0; i < nCount; i++) { - sal_uInt16 nFlags = 0; + AddFontSubstituteFlags nFlags = AddFontSubstituteFlags::NONE; const SubstitutionStruct* pSubs = GetSubstitution(i); if(pSubs->bReplaceAlways) - nFlags |= FONT_SUBSTITUTE_ALWAYS; + nFlags |= AddFontSubstituteFlags::ALWAYS; if(pSubs->bReplaceOnScreenOnly) - nFlags |= FONT_SUBSTITUTE_SCREENONLY; + nFlags |= AddFontSubstituteFlags::ScreenOnly; OutputDevice::AddFontSubstitute( pSubs->sFont, pSubs->sReplaceBy, nFlags ); } -- cgit