summaryrefslogtreecommitdiff
path: root/sw/source/ui/fldui/flddb.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-11-24 10:39:58 +0200
committerNoel Grandin <noel@peralex.com>2014-11-25 10:09:52 +0200
commit1f1c7a4b0d582dffa920c7a51a55ea32c4d203fe (patch)
tree454c20df0bbf835639e594fb8ceebb339b846010 /sw/source/ui/fldui/flddb.cxx
parentef4cd4a718d428ccc5c4958545a6af7564f186e4 (diff)
loplugin: cstylecast
Change-Id: I74d655f24396c35305e90e26c91e45c6fc44df75
Diffstat (limited to 'sw/source/ui/fldui/flddb.cxx')
-rw-r--r--sw/source/ui/fldui/flddb.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/ui/fldui/flddb.cxx b/sw/source/ui/fldui/flddb.cxx
index 556b69ada489..fb9d25e0508c 100644
--- a/sw/source/ui/fldui/flddb.cxx
+++ b/sw/source/ui/fldui/flddb.cxx
@@ -287,12 +287,12 @@ IMPL_LINK( SwFldDBPage, TypeHdl, ListBox *, pBox )
OUString sColumnName;
if (nTypeId == TYP_DBFLD)
{
- aData = ((SwDBField*)GetCurField())->GetDBData();
- sColumnName = ((SwDBFieldType*)GetCurField()->GetTyp())->GetColumnName();
+ aData = static_cast<SwDBField*>(GetCurField())->GetDBData();
+ sColumnName = static_cast<SwDBFieldType*>(GetCurField()->GetTyp())->GetColumnName();
}
else
{
- aData = ((SwDBNameInfField*)GetCurField())->GetDBData(pSh->GetDoc());
+ aData = static_cast<SwDBNameInfField*>(GetCurField())->GetDBData(pSh->GetDoc());
}
m_pDatabaseTLB->Select(aData.sDataSource, aData.sCommand, sColumnName);
}