summaryrefslogtreecommitdiff
path: root/sw/source/ui/dbui/dbinsdlg.cxx
diff options
context:
space:
mode:
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;