diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-28 19:07:30 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-28 19:09:26 +0100 |
commit | 8c8d955998a64c8de7fb7dc81035b8889fdfe2e2 (patch) | |
tree | 879d0fa228e11ed3a2e3a6a1151d5e5fcce49454 /svtools/source/config/fontsubstconfig.cxx | |
parent | 09757afd363d9d015c42db43dbe93be393d667ee (diff) |
Clean up C-style casts from pointers to void
Change-Id: If8783896136470a0664f1cbac061e30576ef96a4
Diffstat (limited to 'svtools/source/config/fontsubstconfig.cxx')
-rw-r--r-- | svtools/source/config/fontsubstconfig.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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<Any> 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<sal_Bool const *>(aValues.getConstArray()[0].getValue()); OUString sPropPrefix(cFontPairs); Sequence<OUString> 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<sal_Bool const *>(pNodeValues[nName++].getValue()); + pInsert->bReplaceOnScreenOnly = *static_cast<sal_Bool const *>(pNodeValues[nName++].getValue()); pImpl->aSubstArr.push_back(pInsert); } } |