From 8c8d955998a64c8de7fb7dc81035b8889fdfe2e2 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sat, 28 Mar 2015 19:07:30 +0100 Subject: Clean up C-style casts from pointers to void Change-Id: If8783896136470a0664f1cbac061e30576ef96a4 --- 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 a602845427d6..1bc0ea56815f 100644 --- a/svtools/source/config/fontsubstconfig.cxx +++ b/svtools/source/config/fontsubstconfig.cxx @@ -57,7 +57,7 @@ SvtFontSubstConfig::SvtFontSubstConfig() : Sequence aValues = GetProperties(aNames); DBG_ASSERT(aValues.getConstArray()[0].hasValue(), "no value available"); if(aValues.getConstArray()[0].hasValue()) - bIsEnabled = *(sal_Bool*)aValues.getConstArray()[0].getValue(); + bIsEnabled = *static_cast(aValues.getConstArray()[0].getValue()); OUString sPropPrefix(cFontPairs); Sequence aNodeNames = GetNodeNames(sPropPrefix, CONFIG_NAME_LOCAL_PATH); @@ -83,8 +83,8 @@ SvtFontSubstConfig::SvtFontSubstConfig() : SubstitutionStruct* pInsert = new SubstitutionStruct; pNodeValues[nName++] >>= pInsert->sFont; pNodeValues[nName++] >>= pInsert->sReplaceBy; - pInsert->bReplaceAlways = *(sal_Bool*)pNodeValues[nName++].getValue(); - pInsert->bReplaceOnScreenOnly = *(sal_Bool*)pNodeValues[nName++].getValue(); + pInsert->bReplaceAlways = *static_cast(pNodeValues[nName++].getValue()); + pInsert->bReplaceOnScreenOnly = *static_cast(pNodeValues[nName++].getValue()); pImpl->aSubstArr.push_back(pInsert); } } -- cgit