diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2008-04-29 10:29:14 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2008-04-29 10:29:14 +0000 |
commit | ee98f7a13e7bf4c48773bad5b2e5b9084c7e5d50 (patch) | |
tree | f7b43e891c6f2143815b0ce4f0465ec075174cdd /comphelper/source/property/opropertybag.hxx | |
parent | 8a65fd29cbcd190ad93ae03db898bdc6f2338b56 (diff) |
#i10000#: fixed gcc-4.2.3 warning: 'comphelper::OPropertyBag' has a field 'comphelper::OPropertyBag::m_aAllowedTypes' whose type uses the anonymous namespace
Diffstat (limited to 'comphelper/source/property/opropertybag.hxx')
-rw-r--r-- | comphelper/source/property/opropertybag.hxx | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/comphelper/source/property/opropertybag.hxx b/comphelper/source/property/opropertybag.hxx index 2dea4a5f40ad..a7a401a0755a 100644 --- a/comphelper/source/property/opropertybag.hxx +++ b/comphelper/source/property/opropertybag.hxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: opropertybag.hxx,v $ - * $Revision: 1.3 $ + * $Revision: 1.4 $ * * This file is part of OpenOffice.org. * @@ -58,19 +58,16 @@ namespace comphelper { //........................................................................ - namespace + struct SAL_DLLPRIVATE UnoTypeLess : public ::std::unary_function< ::com::sun::star::uno::Type, bool > { - struct SAL_DLLPRIVATE UnoTypeLess : public ::std::unary_function< ::com::sun::star::uno::Type, bool > + inline bool operator()( const ::com::sun::star::uno::Type& _rLHS, const ::com::sun::star::uno::Type& _rRHS ) const { - inline bool operator()( const ::com::sun::star::uno::Type& _rLHS, const ::com::sun::star::uno::Type& _rRHS ) const - { - return rtl_ustr_compare( - _rLHS.getTypeLibType()->pTypeName->buffer, - _rRHS.getTypeLibType()->pTypeName->buffer - ) < 0; - } - }; - } + return rtl_ustr_compare( + _rLHS.getTypeLibType()->pTypeName->buffer, + _rRHS.getTypeLibType()->pTypeName->buffer + ) < 0; + } + }; typedef ::std::map< sal_Int32, ::com::sun::star::uno::Any > MapInt2Any; typedef ::std::set< ::com::sun::star::uno::Type, UnoTypeLess > TypeBag; |