From 389999abdb2d35f8641a6ff2e8984887166d39e2 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 8 Nov 2016 15:53:21 +0200 Subject: 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 Tested-by: Noel Grandin --- extensions/source/bibliography/framectr.cxx | 5 +---- extensions/source/propctrlr/propertycomposer.cxx | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'extensions') diff --git a/extensions/source/bibliography/framectr.cxx b/extensions/source/bibliography/framectr.cxx index 65e1d061fcd2..f07e61b156e1 100644 --- a/extensions/source/bibliography/framectr.cxx +++ b/extensions/source/bibliography/framectr.cxx @@ -335,10 +335,7 @@ throw (css::uno::RuntimeException, std::exception) } } - css::uno::Sequence< css::frame::DispatchInformation > aSeq = - comphelper::containerToSequence< css::frame::DispatchInformation, std::list< css::frame::DispatchInformation > >( aDispatchInfoList ); - - return aSeq; + return comphelper::containerToSequence( aDispatchInfoList ); } bool canInsertRecords(const Reference< beans::XPropertySet>& _rxCursorSet) diff --git a/extensions/source/propctrlr/propertycomposer.cxx b/extensions/source/propctrlr/propertycomposer.cxx index 98f67468cb0c..dd3f24e78799 100644 --- a/extensions/source/propctrlr/propertycomposer.cxx +++ b/extensions/source/propctrlr/propertycomposer.cxx @@ -255,8 +255,7 @@ namespace pcr m_bSupportedPropertiesAreKnown = true; } - Sequence< Property > aSurvived = comphelper::containerToSequence( m_aSupportedProperties ); - return aSurvived; + return comphelper::containerToSequence( m_aSupportedProperties ); } -- cgit