summaryrefslogtreecommitdiff
path: root/include/svl/itemprop.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/svl/itemprop.hxx')
-rw-r--r--include/svl/itemprop.hxx18
1 files changed, 6 insertions, 12 deletions
diff --git a/include/svl/itemprop.hxx b/include/svl/itemprop.hxx
index f3db2f2eb6d9..ddd636272ea4 100644
--- a/include/svl/itemprop.hxx
+++ b/include/svl/itemprop.hxx
@@ -69,29 +69,23 @@ struct SfxItemPropertyMapEntry
}
};
-struct SfxItemPropertyMapCompare
-{
- bool operator() ( const SfxItemPropertyMapEntry * lhs, const SfxItemPropertyMapEntry * rhs ) const
- {
- return lhs->aName < rhs->aName;
- }
-};
class SVL_DLLPUBLIC SfxItemPropertyMap
{
- o3tl::sorted_vector< const SfxItemPropertyMapEntry*, SfxItemPropertyMapCompare > m_aMap;
- mutable css::uno::Sequence< css::beans::Property > m_aPropSeq;
public:
SfxItemPropertyMap( std::span<const SfxItemPropertyMapEntry> pEntries );
SfxItemPropertyMap( const SfxItemPropertyMap& rSource );
~SfxItemPropertyMap();
- const SfxItemPropertyMapEntry* getByName( std::u16string_view rName ) const;
+ const SfxItemPropertyMapEntry* getByName( const OUString & rName ) const;
css::uno::Sequence< css::beans::Property > const & getProperties() const;
/// @throws css::beans::UnknownPropertyException
css::beans::Property getPropertyByName( const OUString & rName ) const;
- bool hasPropertyByName( std::u16string_view rName ) const;
+ bool hasPropertyByName( const OUString & rName ) const;
- const o3tl::sorted_vector< const SfxItemPropertyMapEntry*, SfxItemPropertyMapCompare >& getPropertyEntries() const { return m_aMap; }
+ const std::unordered_map< OUString, const SfxItemPropertyMapEntry* >& getPropertyEntries() const { return m_aMap; }
+private:
+ std::unordered_map< OUString, const SfxItemPropertyMapEntry* > m_aMap;
+ mutable css::uno::Sequence< css::beans::Property > m_aPropSeq;
};
class SVL_DLLPUBLIC SfxItemPropertySet final