summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--forms/source/component/FormattedField.cxx16
-rw-r--r--forms/source/component/refvaluecomponent.cxx10
2 files changed, 13 insertions, 13 deletions
diff --git a/forms/source/component/FormattedField.cxx b/forms/source/component/FormattedField.cxx
index ff3ca9b054f2..c84c219cc309 100644
--- a/forms/source/component/FormattedField.cxx
+++ b/forms/source/component/FormattedField.cxx
@@ -53,7 +53,7 @@
#include <comphelper/streamsection.hxx>
#include <cppuhelper/weakref.hxx>
#include <unotools/desktopterminationobserver.hxx>
-#include <list>
+#include <vector>
#include <algorithm>
@@ -970,26 +970,26 @@ Any OFormattedModel::translateDbColumnToControlValue()
Sequence< Type > OFormattedModel::getSupportedBindingTypes()
{
- ::std::list< Type > aTypes;
- aTypes.push_back( cppu::UnoType< double >::get() );
+ ::std::vector< Type > aTypes;
switch ( m_nKeyType & ~NumberFormat::DEFINED )
{
case NumberFormat::DATE:
- aTypes.push_front(cppu::UnoType< css::util::Date >::get() );
+ aTypes.push_back(cppu::UnoType< css::util::Date >::get() );
break;
case NumberFormat::TIME:
- aTypes.push_front(cppu::UnoType< css::util::Time >::get() );
+ aTypes.push_back(cppu::UnoType< css::util::Time >::get() );
break;
case NumberFormat::DATETIME:
- aTypes.push_front(cppu::UnoType< css::util::DateTime >::get() );
+ aTypes.push_back(cppu::UnoType< css::util::DateTime >::get() );
break;
case NumberFormat::TEXT:
- aTypes.push_front(cppu::UnoType< OUString >::get() );
+ aTypes.push_back(cppu::UnoType< OUString >::get() );
break;
case NumberFormat::LOGICAL:
- aTypes.push_front(cppu::UnoType< sal_Bool >::get() );
+ aTypes.push_back(cppu::UnoType< sal_Bool >::get() );
break;
}
+ aTypes.push_back( cppu::UnoType< double >::get() );
return comphelper::containerToSequence(aTypes);
}
diff --git a/forms/source/component/refvaluecomponent.cxx b/forms/source/component/refvaluecomponent.cxx
index fbb4aeed1ab6..c85fa5784503 100644
--- a/forms/source/component/refvaluecomponent.cxx
+++ b/forms/source/component/refvaluecomponent.cxx
@@ -21,7 +21,7 @@
#include <tools/diagnose_ex.h>
-#include <list>
+#include <vector>
namespace frm
@@ -162,12 +162,12 @@ namespace frm
Sequence< Type > OReferenceValueComponent::getSupportedBindingTypes()
{
- ::std::list< Type > aTypes;
- aTypes.push_back( cppu::UnoType<sal_Bool>::get() );
+ ::std::vector< Type > aTypes;
if ( !m_sReferenceValue.isEmpty() )
- aTypes.push_front( cppu::UnoType<OUString>::get() );
- // push_front, because this is the preferred type
+ aTypes.push_back( cppu::UnoType<OUString>::get() );
+
+ aTypes.push_back( cppu::UnoType<sal_Bool>::get() );
return comphelper::containerToSequence(aTypes);
}