summaryrefslogtreecommitdiff
path: root/sw/source/ui/dbui/dbinsdlg.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-12-04 09:07:52 +0200
committerNoel Grandin <noel@peralex.com>2014-12-04 11:15:54 +0200
commit64a70d8cf56b4a9c1b6bdf920f71cc49c3a2240e (patch)
treef11ccdc0a9a97969c76b081da5d6abf5d148e3b0 /sw/source/ui/dbui/dbinsdlg.cxx
parent1c1c515e01c93c478a00e7a840b733380406a366 (diff)
loplugin: cstylecast
Change-Id: Id61218433add142e109bfc858549b8d2d8d1c28f
Diffstat (limited to 'sw/source/ui/dbui/dbinsdlg.cxx')
-rw-r--r--sw/source/ui/dbui/dbinsdlg.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/ui/dbui/dbinsdlg.cxx b/sw/source/ui/dbui/dbinsdlg.cxx
index 04cc19061458..e565f8af2bcc 100644
--- a/sw/source/ui/dbui/dbinsdlg.cxx
+++ b/sw/source/ui/dbui/dbinsdlg.cxx
@@ -913,7 +913,7 @@ bool SwInsertDBColAutoPilot::SplitTextToColArr( const OUString& rTxt,
SwDBFieldType aFldType( rSh.GetDoc(), aSrch.sColumn,
aDBData );
pNew = new _DB_Column( rFndCol, *new SwDBField(
- (SwDBFieldType*)rSh.InsertFldType( aFldType ),
+ static_cast<SwDBFieldType*>(rSh.InsertFldType( aFldType )),
nFormat ) );
if( nSubType )
pNew->DB_ColumnData.pField->SetSubType( nSubType );
@@ -1226,8 +1226,8 @@ void SwInsertDBColAutoPilot::DataToDoc( const Sequence<Any>& rSelection,
}
}
aDBFormatData.aLocale = LanguageTag( rSh.GetCurLang() ).getLocale();
- SwDBNextSetField aNxtDBFld( (SwDBNextSetFieldType*)rSh.
- GetFldType( 0, RES_DBNEXTSETFLD ),
+ SwDBNextSetField aNxtDBFld( static_cast<SwDBNextSetFieldType*>(rSh.
+ GetFldType( 0, RES_DBNEXTSETFLD )),
"1", "", aDBData );
bool bSetCrsr = true;