summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-09-18 14:19:56 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-09-19 09:31:43 +0200
commitd7844222bb56f346eae4e58c9e87c774a7211cb0 (patch)
tree0fdc8603b8ebde1d97471048197edc778f229fe6 /forms
parent75ad3ca84409f9b622b32d0ceb6614c3c9f5b8aa (diff)
unused m_nFieldType in OFormattedModel
since initial import Change-Id: Ib347a24c108b97f76e9384d5c567db1474c8d686
Diffstat (limited to 'forms')
-rw-r--r--forms/source/component/FormattedField.cxx5
-rw-r--r--forms/source/component/FormattedField.hxx1
2 files changed, 0 insertions, 6 deletions
diff --git a/forms/source/component/FormattedField.cxx b/forms/source/component/FormattedField.cxx
index 4d101828d3ad..27cdd02b1e6c 100644
--- a/forms/source/component/FormattedField.cxx
+++ b/forms/source/component/FormattedField.cxx
@@ -261,7 +261,6 @@ void OFormattedModel::implConstruct()
m_xOriginalFormatter = nullptr;
m_nKeyType = NumberFormat::UNDEFINED;
m_aNullDate = DBTypeConversion::getStandardDate();
- m_nFieldType = DataType::OTHER;
// default our formats supplier
osl_atomic_increment(&m_refCount);
setPropertyToDefaultByHandle(PROPERTY_ID_FORMATSSUPPLIER);
@@ -529,10 +528,7 @@ void OFormattedModel::onConnectedDbColumn( const Reference< XInterface >& _rxFor
{
m_xOriginalFormatter = nullptr;
// get some properties of the field
- m_nFieldType = DataType::OTHER;
Reference<XPropertySet> xField = getField();
- if ( xField.is() )
- xField->getPropertyValue( PROPERTY_FIELDTYPE ) >>= m_nFieldType;
sal_Int32 nFormatKey = 0;
DBG_ASSERT(m_xAggregateSet.is(), "OFormattedModel::onConnectedDbColumn : have no aggregate !");
if (m_xAggregateSet.is())
@@ -619,7 +615,6 @@ void OFormattedModel::onDisconnectedDbColumn()
setPropertyValue(PROPERTY_TREATASNUMERIC, makeAny(m_bOriginalNumeric));
m_xOriginalFormatter = nullptr;
}
- m_nFieldType = DataType::OTHER;
m_nKeyType = NumberFormat::UNDEFINED;
m_aNullDate = DBTypeConversion::getStandardDate();
}
diff --git a/forms/source/component/FormattedField.hxx b/forms/source/component/FormattedField.hxx
index b5bf605eaa1f..317f18a608ce 100644
--- a/forms/source/component/FormattedField.hxx
+++ b/forms/source/component/FormattedField.hxx
@@ -42,7 +42,6 @@ class OFormattedModel
css::util::Date m_aNullDate;
css::uno::Any m_aSaveValue;
- sal_Int32 m_nFieldType;
sal_Int16 m_nKeyType;
bool m_bOriginalNumeric : 1,
m_bNumeric : 1; // analogous for the TreatAsNumeric-property