summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-11-08 15:53:21 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-11-09 07:48:18 +0000
commit389999abdb2d35f8641a6ff2e8984887166d39e2 (patch)
tree746ae9503700b07bb84938c8899a24aeb8b8fcd8 /forms
parent57998f642de65bdcb72742abd8ab94a26840a31d (diff)
make comphelper::containerToSequence a little smarter
So we don't have to specify the source and destination type as often. Change-Id: Id9e286417a1cb246d163cbc3c536b231a4a92624 Reviewed-on: https://gerrit.libreoffice.org/30700 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'forms')
-rw-r--r--forms/source/component/FormattedField.cxx2
-rw-r--r--forms/source/component/ListBox.cxx4
-rw-r--r--forms/source/component/refvaluecomponent.cxx2
-rw-r--r--forms/source/misc/componenttools.cxx2
4 files changed, 5 insertions, 5 deletions
diff --git a/forms/source/component/FormattedField.cxx b/forms/source/component/FormattedField.cxx
index d3841a1ea649..ad6bfb4900e1 100644
--- a/forms/source/component/FormattedField.cxx
+++ b/forms/source/component/FormattedField.cxx
@@ -998,7 +998,7 @@ Sequence< Type > OFormattedModel::getSupportedBindingTypes()
aTypes.push_front(cppu::UnoType< sal_Bool >::get() );
break;
}
- return comphelper::containerToSequence<Type>(aTypes);
+ return comphelper::containerToSequence(aTypes);
}
Any OFormattedModel::getDefaultForReset() const
diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx
index 4ad80031f502..840d2a4b1d08 100644
--- a/forms/source/component/ListBox.cxx
+++ b/forms/source/component/ListBox.cxx
@@ -1403,7 +1403,7 @@ namespace frm
}
// copy the indexes to the sequence
- aSelectIndexes = comphelper::containerToSequence<sal_Int16>( aSelectionSet );
+ aSelectIndexes = comphelper::containerToSequence( aSelectionSet );
}
break;
@@ -1420,7 +1420,7 @@ namespace frm
++idx;
}
- aSelectIndexes = comphelper::containerToSequence<sal_Int16>( aSelectionSet );
+ aSelectIndexes = comphelper::containerToSequence( aSelectionSet );
}
break;
}
diff --git a/forms/source/component/refvaluecomponent.cxx b/forms/source/component/refvaluecomponent.cxx
index b48469a880d9..b931b7ded39f 100644
--- a/forms/source/component/refvaluecomponent.cxx
+++ b/forms/source/component/refvaluecomponent.cxx
@@ -169,7 +169,7 @@ namespace frm
aTypes.push_front( cppu::UnoType<OUString>::get() );
// push_front, because this is the preferred type
- return comphelper::containerToSequence<Type>(aTypes);
+ return comphelper::containerToSequence(aTypes);
}
diff --git a/forms/source/misc/componenttools.cxx b/forms/source/misc/componenttools.cxx
index 13a1ed71f03d..ad929575d7f5 100644
--- a/forms/source/misc/componenttools.cxx
+++ b/forms/source/misc/componenttools.cxx
@@ -81,7 +81,7 @@ namespace frm
TypeBag::TypeSequence TypeBag::getTypes() const
{
- return comphelper::containerToSequence<css::uno::Type>(m_aTypes);
+ return comphelper::containerToSequence(m_aTypes);
}