summaryrefslogtreecommitdiff
path: root/sw/source/ui/dbui
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/ui/dbui
parent85f28ec44a2c169c91dac9346e9c71feda6a6cab (diff)
Clean up C-style casts from pointers to void
Change-Id: I2ec58d0bfe13fae4fc2141f9b017b5a72e0ba2c2
Diffstat (limited to 'sw/source/ui/dbui')
-rw-r--r--sw/source/ui/dbui/dbinsdlg.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/ui/dbui/dbinsdlg.cxx b/sw/source/ui/dbui/dbinsdlg.cxx
index c676590ef5a6..daf8855fd5b6 100644
--- a/sw/source/ui/dbui/dbinsdlg.cxx
+++ b/sw/source/ui/dbui/dbinsdlg.cxx
@@ -1648,13 +1648,13 @@ void SwInsertDBColAutoPilot::Load()
pDataSourceProps[5] >>= pNewData->sTmplNm;
pDataSourceProps[6] >>= pNewData->sTAutoFmtNm;
if(pDataSourceProps[7].hasValue())
- pNewData->bIsTable = *(sal_Bool*)pDataSourceProps[7].getValue();
+ pNewData->bIsTable = *static_cast<sal_Bool const *>(pDataSourceProps[7].getValue());
if(pDataSourceProps[8].hasValue())
- pNewData->bIsField = *(sal_Bool*)pDataSourceProps[8].getValue();
+ pNewData->bIsField = *static_cast<sal_Bool const *>(pDataSourceProps[8].getValue());
if(pDataSourceProps[9].hasValue())
- pNewData->bIsHeadlineOn = *(sal_Bool*)pDataSourceProps[9].getValue();
+ pNewData->bIsHeadlineOn = *static_cast<sal_Bool const *>(pDataSourceProps[9].getValue());
if(pDataSourceProps[10].hasValue())
- pNewData->bIsEmptyHeadln = *(sal_Bool*)pDataSourceProps[10].getValue();
+ pNewData->bIsEmptyHeadln = *static_cast<sal_Bool const *>(pDataSourceProps[10].getValue());
const OUString sSubNodeName(pNames[nNode] + "/ColumnSet/");
Sequence <OUString> aSubNames = GetNodeNames(sSubNodeName);
@@ -1684,9 +1684,9 @@ void SwInsertDBColAutoPilot::Load()
pSubProps[1] >>= nIndex;
SwInsDBColumn* pInsDBColumn = new SwInsDBColumn(sColumn, nIndex);
if(pSubProps[2].hasValue())
- pInsDBColumn->bHasFmt = *(sal_Bool*)pSubProps[2].getValue();
+ pInsDBColumn->bHasFmt = *static_cast<sal_Bool const *>(pSubProps[2].getValue());
if(pSubProps[3].hasValue())
- pInsDBColumn->bIsDBFmt = *(sal_Bool*)pSubProps[3].getValue();
+ pInsDBColumn->bIsDBFmt = *static_cast<sal_Bool const *>(pSubProps[3].getValue());
pSubProps[4] >>= pInsDBColumn->sUsrNumFmt;
OUString sNumberFormatLocale;