summaryrefslogtreecommitdiff
path: root/sw/source/ui
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui')
-rw-r--r--sw/source/ui/dbui/dbinsdlg.cxx4
-rw-r--r--sw/source/ui/fldui/flddb.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/ui/dbui/dbinsdlg.cxx b/sw/source/ui/dbui/dbinsdlg.cxx
index 9ce7d10a4cc1..d12c56c8d287 100644
--- a/sw/source/ui/dbui/dbinsdlg.cxx
+++ b/sw/source/ui/dbui/dbinsdlg.cxx
@@ -881,7 +881,7 @@ bool SwInsertDBColAutoPilot::SplitTextToColArr( const OUString& rText,
sText = sText.copy( rFndCol.sColumn.getLength() + 2 );
nSttPos = 0;
- sal_uInt16 nSubType = 0;
+ SwDBFieldSubType nSubType = SwDBFieldSubType::None;
sal_uInt32 nFormat;
if( rFndCol.bHasFormat )
{
@@ -890,7 +890,7 @@ bool SwInsertDBColAutoPilot::SplitTextToColArr( const OUString& rText,
else
{
nFormat = rFndCol.nUsrNumFormat;
- nSubType = nsSwExtendedSubType::SUB_OWN_FMT;
+ nSubType = SwDBFieldSubType::OwnFormat;
}
}
else
diff --git a/sw/source/ui/fldui/flddb.cxx b/sw/source/ui/fldui/flddb.cxx
index 6b6919099c26..bd14ffc5ab2f 100644
--- a/sw/source/ui/fldui/flddb.cxx
+++ b/sw/source/ui/fldui/flddb.cxx
@@ -230,7 +230,7 @@ bool SwFieldDBPage::FillItemSet(SfxItemSet* )
case SwFieldTypesEnum::Database:
nFormat = m_xNumFormatLB->GetFormat();
if (m_xNewFormatRB->get_sensitive() && m_xNewFormatRB->get_active())
- nSubType = nsSwExtendedSubType::SUB_OWN_FMT;
+ nSubType = static_cast<sal_uInt16>(SwDBFieldSubType::OwnFormat);
aName = sDBName;
break;
@@ -342,7 +342,7 @@ void SwFieldDBPage::TypeHdl(const weld::TreeView* pBox)
if (nFormat != 0 && nFormat != SAL_MAX_UINT32)
m_xNumFormatLB->SetDefFormat(nFormat);
- if (pDBField->GetSubType() & nsSwExtendedSubType::SUB_OWN_FMT)
+ if (pDBField->GetSubType() & SwDBFieldSubType::OwnFormat)
m_xNewFormatRB->set_active(true);
else
m_xDBFormatRB->set_active(true);