diff options
author | Thorsten Behrens <tbehrens@suse.com> | 2012-01-17 11:41:14 +0100 |
---|---|---|
committer | Thorsten Behrens <tbehrens@suse.com> | 2012-01-17 11:42:07 +0100 |
commit | 29bd62fdc2792e215999e9dd0ec9a4bf1102201d (patch) | |
tree | 1d6a8a49a7b6516acddda95fcc84dcf2aa64378c /comphelper/inc | |
parent | 0e163ead17cb1e6675c72a39c32a0bb4d733857a (diff) |
Switch flag sequence of OpenCommandArg3 to NamedValue.
Based on feedback for 09954fc863c8ee900f157cab4458e1dcf51493d3,
using the less-bulky NamedValue type instead of PropertyValue.
Diffstat (limited to 'comphelper/inc')
-rw-r--r-- | comphelper/inc/comphelper/stl_types.hxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/comphelper/inc/comphelper/stl_types.hxx b/comphelper/inc/comphelper/stl_types.hxx index 79c4a17de291..477ee67c5204 100644 --- a/comphelper/inc/comphelper/stl_types.hxx +++ b/comphelper/inc/comphelper/stl_types.hxx @@ -48,6 +48,7 @@ #include <rtl/ustrbuf.hxx> #include <com/sun/star/uno/Reference.hxx> #include <com/sun/star/beans/PropertyValue.hpp> +#include <com/sun/star/beans/NamedValue.hpp> //... namespace comphelper ................................................ namespace comphelper @@ -130,6 +131,17 @@ public: } }; //------------------------------------------------------------------------ +class TNamedValueEqualFunctor : public ::std::binary_function< ::com::sun::star::beans::NamedValue,::rtl::OUString,bool> +{ +public: + TNamedValueEqualFunctor() + {} + bool operator() (const ::com::sun::star::beans::NamedValue& lhs, const ::rtl::OUString& rhs) const + { + return !!(lhs.Name == rhs); + } +}; +//------------------------------------------------------------------------ class UStringMixHash { sal_Bool m_bCaseSensitive; |