diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2017-11-01 20:59:57 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2017-11-02 04:50:29 +0100 |
commit | 98b03cdc63bdf72a054a7fd17226673e34a3ba3e (patch) | |
tree | 9e176b9d0ab4a05f382c58ca0dc07b5988c2496c /forms | |
parent | 11459949e920fab6074bab85e3e1a748e9aee1ee (diff) |
Replace lists by vectors (forms)
Change-Id: Id0215a1044f330ffe6d09875d2f0ed6d4aa0b4f0
Reviewed-on: https://gerrit.libreoffice.org/44179
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/component/FormattedField.cxx | 16 | ||||
-rw-r--r-- | forms/source/component/refvaluecomponent.cxx | 10 |
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); } |