summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unoobj.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-28 19:07:45 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-28 19:09:27 +0100
commit2828d92eee63a4a5306ef64482bc7d1db3459406 (patch)
tree0fe6e09f55f278bf9c32d36e9375fb7258b6ed0a /sw/source/core/unocore/unoobj.cxx
parent85f28ec44a2c169c91dac9346e9c71feda6a6cab (diff)
Clean up C-style casts from pointers to void
Change-Id: I2ec58d0bfe13fae4fc2141f9b017b5a72e0ba2c2
Diffstat (limited to 'sw/source/core/unocore/unoobj.cxx')
-rw-r--r--sw/source/core/unocore/unoobj.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/unocore/unoobj.cxx b/sw/source/core/unocore/unoobj.cxx
index 856f3a1218cf..52f120d0e8fd 100644
--- a/sw/source/core/unocore/unoobj.cxx
+++ b/sw/source/core/unocore/unoobj.cxx
@@ -2730,7 +2730,7 @@ bool SwUnoCursorHelper::ConvertSortProperties(
{
if (aValue.getValueType() == ::getBooleanCppuType())
{
- rSortOpt.bTable = *(sal_Bool*)aValue.getValue();
+ rSortOpt.bTable = *static_cast<sal_Bool const *>(aValue.getValue());
}
else
{
@@ -2837,7 +2837,7 @@ bool SwUnoCursorHelper::ConvertSortProperties(
nIndex = nIndex - '0';
if (aValue.getValueType() == ::getBooleanCppuType() && nIndex < 3)
{
- bool bTemp = *(sal_Bool*)aValue.getValue();
+ bool bTemp = *static_cast<sal_Bool const *>(aValue.getValue());
aKeys[nIndex]->bIsNumeric = bTemp;
}
else
@@ -2854,7 +2854,7 @@ bool SwUnoCursorHelper::ConvertSortProperties(
nIndex -= '0';
if (aValue.getValueType() == ::getBooleanCppuType() && nIndex < 3)
{
- bool bTemp = *(sal_Bool*)aValue.getValue();
+ bool bTemp = *static_cast<sal_Bool const *>(aValue.getValue());
aKeys[nIndex]->eSortOrder = (bTemp)
? SRT_ASCENDING : SRT_DESCENDING;
}
@@ -2869,7 +2869,7 @@ bool SwUnoCursorHelper::ConvertSortProperties(
bNewSortdescriptor = true;
if (aValue.getValueType() == ::getBooleanCppuType())
{
- bool bTemp = *(sal_Bool*)aValue.getValue();
+ bool bTemp = *static_cast<sal_Bool const *>(aValue.getValue());
rSortOpt.eDirection = bTemp ? SRT_COLUMNS : SRT_ROWS;
}
else