summaryrefslogtreecommitdiff
path: root/extensions
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 /extensions
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 'extensions')
-rw-r--r--extensions/source/bibliography/framectr.cxx5
-rw-r--r--extensions/source/propctrlr/propertycomposer.cxx3
2 files changed, 2 insertions, 6 deletions
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<Property>( m_aSupportedProperties );
- return aSurvived;
+ return comphelper::containerToSequence( m_aSupportedProperties );
}