diff options
Diffstat (limited to 'comphelper/source/misc')
-rw-r--r-- | comphelper/source/misc/syntaxhighlight.cxx | 2 | ||||
-rw-r--r-- | comphelper/source/misc/types.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/comphelper/source/misc/syntaxhighlight.cxx b/comphelper/source/misc/syntaxhighlight.cxx index b7a0186afb4b..11ec7231fa52 100644 --- a/comphelper/source/misc/syntaxhighlight.cxx +++ b/comphelper/source/misc/syntaxhighlight.cxx @@ -241,7 +241,7 @@ static const char* strListSqlKeyWords[] = { extern "C" int compare_strings( const void *arg1, const void *arg2 ) { - return strcmp( (char *)arg1, *(char **)arg2 ); + return strcmp( static_cast<char const *>(arg1), *static_cast<char * const *>(arg2) ); } diff --git a/comphelper/source/misc/types.cxx b/comphelper/source/misc/types.cxx index 8bee20711804..bb060c4ea912 100644 --- a/comphelper/source/misc/types.cxx +++ b/comphelper/source/misc/types.cxx @@ -123,7 +123,7 @@ bool getBOOL(const Any& _rAny) { bool nReturn = false; if (_rAny.getValueType() == ::getCppuBooleanType()) - nReturn = *(sal_Bool*)_rAny.getValue(); + nReturn = *static_cast<sal_Bool const *>(_rAny.getValue()); else OSL_FAIL("comphelper::getBOOL : invalid argument !"); return nReturn; @@ -295,7 +295,7 @@ bool compare_impl(const Type& _rType, const void* pData, const Any& _rValue) bConversionSuccess = _rValue >>= aTemp; if (bConversionSuccess) { - bRes = *(FontDescriptor*)pData == aTemp; + bRes = *static_cast<FontDescriptor const *>(pData) == aTemp; } else bRes = false; |