diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-28 19:07:39 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-28 19:09:27 +0100 |
commit | 85f28ec44a2c169c91dac9346e9c71feda6a6cab (patch) | |
tree | 59313be197397c62a2b8f8b8829a65023a20f17e /svx/source/fmcomp/gridcols.cxx | |
parent | 8c8d955998a64c8de7fb7dc81035b8889fdfe2e2 (diff) |
Clean up C-style casts from pointers to void
Change-Id: I5f4029fc583952ae6392dbf2d478155982ccecef
Diffstat (limited to 'svx/source/fmcomp/gridcols.cxx')
-rw-r--r-- | svx/source/fmcomp/gridcols.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/fmcomp/gridcols.cxx b/svx/source/fmcomp/gridcols.cxx index 02b11a909522..0f4669279431 100644 --- a/svx/source/fmcomp/gridcols.cxx +++ b/svx/source/fmcomp/gridcols.cxx @@ -49,7 +49,7 @@ const ::comphelper::StringSequence& getColumnTypes() // Vergleichen von PropertyInfo extern "C" int SAL_CALL NameCompare(const void* pFirst, const void* pSecond) { - return ((OUString*)pFirst)->compareTo(*(OUString*)pSecond); + return static_cast<OUString const *>(pFirst)->compareTo(*static_cast<OUString const *>(pSecond)); } namespace @@ -58,8 +58,8 @@ namespace sal_Int32 lcl_findPos(const OUString& aStr, const Sequence< OUString>& rList) { const OUString* pStrList = rList.getConstArray(); - OUString* pResult = (OUString*) bsearch(&aStr, (void*)pStrList, rList.getLength(), sizeof(OUString), - &NameCompare); + OUString* pResult = static_cast<OUString*>(bsearch(&aStr, (void*)pStrList, rList.getLength(), sizeof(OUString), + &NameCompare)); if (pResult) return (pResult - pStrList); |