diff options
author | Noel Grandin <noel@peralex.com> | 2016-01-11 08:39:18 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-01-11 10:49:24 +0200 |
commit | 6fc3fd29a6d08ee85d3ed5a3bad5de754f568314 (patch) | |
tree | a76c62a18f860863d94652400688d64660b72ad0 /chart2/source/inc/CloneHelper.hxx | |
parent | bc80f951c14208eae6060fe2e6a941f9dd2d619c (diff) |
loplugin:unusedmethods unused return value in chart2
Change-Id: Ibd8ae8ade2a1037deac1e29ce1b867c2847a9dff
Diffstat (limited to 'chart2/source/inc/CloneHelper.hxx')
-rw-r--r-- | chart2/source/inc/CloneHelper.hxx | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/chart2/source/inc/CloneHelper.hxx b/chart2/source/inc/CloneHelper.hxx index 24e5f1c25611..6d1f44f130ed 100644 --- a/chart2/source/inc/CloneHelper.hxx +++ b/chart2/source/inc/CloneHelper.hxx @@ -47,25 +47,6 @@ template< class Interface > } }; -/// functor that clones a map element with a UNO-Reference as value -template< typename Key, class Interface > - struct CreateRefWithKeyClone : public ::std::unary_function< - ::std::pair< Key, Interface >, - ::std::pair< Key, Interface > > -{ - ::std::pair< Key, Interface > operator() ( - const ::std::pair< Key, Interface > & rOther ) - { - Interface xResult; - ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloneable > - xCloneable( rOther.second, ::com::sun::star::uno::UNO_QUERY ); - if( xCloneable.is()) - xResult.set( xCloneable->createClone(), ::com::sun::star::uno::UNO_QUERY ); - - return ::std::make_pair< Key, Interface >( rOther.first, xResult ); - } -}; - /// clones a vector of UNO-References template< class Interface > void CloneRefVector( |