diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-01-05 21:30:06 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-01-05 22:41:56 +0000 |
commit | 9999eab5fe5e92118574468905cae0e3c8982c7f (patch) | |
tree | 2bc04015f09e30c8d8dbb000f12f08749c21be59 /svl/inc | |
parent | b234008ba5096f251fffec4c467f2103f4ba3cc0 (diff) |
getPropertyMap can return a reference instead of a pointer
Diffstat (limited to 'svl/inc')
-rw-r--r-- | svl/inc/svl/itemprop.hxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/svl/inc/svl/itemprop.hxx b/svl/inc/svl/itemprop.hxx index aeaa9e26c2d9..09dfadc34eb9 100644 --- a/svl/inc/svl/itemprop.hxx +++ b/svl/inc/svl/itemprop.hxx @@ -94,7 +94,7 @@ class SVL_DLLPUBLIC SfxItemPropertyMap SfxItemPropertyMap_Impl* m_pImpl; public: SfxItemPropertyMap( const SfxItemPropertyMapEntry* pEntries ); - SfxItemPropertyMap( const SfxItemPropertyMap* pSource ); + SfxItemPropertyMap( const SfxItemPropertyMap& rSource ); ~SfxItemPropertyMap(); const SfxItemPropertySimpleEntry* getByName( const ::rtl::OUString &rName ) const; @@ -156,9 +156,7 @@ public: com::sun::star::uno::Reference<com::sun::star::beans::XPropertySetInfo> getPropertySetInfo() const; - const SfxItemPropertyMap* - getPropertyMap() const {return &m_aMap;} - + const SfxItemPropertyMap& getPropertyMap() const {return m_aMap;} }; struct SfxItemPropertySetInfo_Impl; @@ -168,7 +166,7 @@ class SVL_DLLPUBLIC SfxItemPropertySetInfo : public SfxItemPropertySetInfo_Impl* m_pImpl; public: - SfxItemPropertySetInfo(const SfxItemPropertyMap *pMap ); + SfxItemPropertySetInfo(const SfxItemPropertyMap &rMap ); SfxItemPropertySetInfo(const SfxItemPropertyMapEntry *pEntries ); virtual ~SfxItemPropertySetInfo(); |