diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-04-08 15:02:47 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-04-08 17:51:37 +0200 |
commit | 4b3a535ae311546066471cf9c2584fc4bfd65cc6 (patch) | |
tree | f13e1c50351dc1f4d5f9be0723f62b11f6935070 /include/svl | |
parent | e3efae3ebc593b234058908c82d0f62a30736f40 (diff) |
svl: prefix members of SfxItemSet
Change-Id: I801aaa8ad9a4ff08dedd2f92b09d98c870c725b8
Diffstat (limited to 'include/svl')
-rw-r--r-- | include/svl/itemiter.hxx | 6 | ||||
-rw-r--r-- | include/svl/itemset.hxx | 22 |
2 files changed, 14 insertions, 14 deletions
diff --git a/include/svl/itemiter.hxx b/include/svl/itemiter.hxx index a779449468d7..626ff4354bfe 100644 --- a/include/svl/itemiter.hxx +++ b/include/svl/itemiter.hxx @@ -39,12 +39,12 @@ public: // falls es diese gibt, returne sie, sonst 0 const SfxPoolItem* FirstItem() { _nAkt = _nStt; - return _rSet._nCount ? *(_rSet._aItems+_nAkt) : 0; } + return _rSet.m_nCount ? *(_rSet.m_pItems+_nAkt) : nullptr; } const SfxPoolItem* LastItem() { _nAkt = _nEnd; - return _rSet._nCount ? *(_rSet._aItems+_nAkt) : 0; } + return _rSet.m_nCount ? *(_rSet.m_pItems+_nAkt) : nullptr; } const SfxPoolItem* GetCurItem() - { return _rSet._nCount ? *(_rSet._aItems+_nAkt) : 0; } + { return _rSet.m_nCount ? *(_rSet.m_pItems+_nAkt) : nullptr; } const SfxPoolItem* NextItem(); bool IsAtStart() const { return _nAkt == _nStt; } diff --git a/include/svl/itemset.hxx b/include/svl/itemset.hxx index af85023cd126..75f725000569 100644 --- a/include/svl/itemset.hxx +++ b/include/svl/itemset.hxx @@ -41,11 +41,11 @@ class SVL_DLLPUBLIC SfxItemSet { friend class SfxItemIter; - SfxItemPool* _pPool; // pool, which is used - const SfxItemSet* _pParent; // derivation - SfxItemArray _aItems; // field of items - sal_uInt16* _pWhichRanges; // array of Which Ranges - sal_uInt16 _nCount; // number of items + SfxItemPool* m_pPool; ///< pool that stores the items + const SfxItemSet* m_pParent; ///< derivation + SfxItemArray m_pItems; ///< array of items + sal_uInt16* m_pWhichRanges; ///< array of Which Ranges + sal_uInt16 m_nCount; ///< number of items friend class SfxItemPoolCache; friend class SfxAllItemSet; @@ -57,7 +57,7 @@ private: SVL_DLLPRIVATE void InitRanges_Impl(sal_uInt16 nWh1, sal_uInt16 nWh2); public: - SfxItemArray GetItems_Impl() const { return _aItems; } + SfxItemArray GetItems_Impl() const { return m_pItems; } private: const SfxItemSet& operator=(const SfxItemSet &) SAL_DELETED_FUNCTION; @@ -80,7 +80,7 @@ public: virtual SfxItemSet * Clone(bool bItems = true, SfxItemPool *pToPool = 0) const; // Get number of items - sal_uInt16 Count() const { return _nCount; } + sal_uInt16 Count() const { return m_nCount; } sal_uInt16 TotalCount() const; const SfxPoolItem& Get( sal_uInt16 nWhich, bool bSrchInParent = true ) const; @@ -123,11 +123,11 @@ public: void Differentiate( const SfxItemSet& rSet ); void MergeValue( const SfxPoolItem& rItem, bool bOverwriteDefaults = false ); - SfxItemPool* GetPool() const { return _pPool; } - const sal_uInt16* GetRanges() const { return _pWhichRanges; } + SfxItemPool* GetPool() const { return m_pPool; } + const sal_uInt16* GetRanges() const { return m_pWhichRanges; } void SetRanges( const sal_uInt16 *pRanges ); void MergeRange( sal_uInt16 nFrom, sal_uInt16 nTo ); - const SfxItemSet* GetParent() const { return _pParent; } + const SfxItemSet* GetParent() const { return m_pParent; } SvStream & Load( SvStream &, bool bDirect = false, const SfxItemPool *pRefPool = 0 ); @@ -141,7 +141,7 @@ public: inline void SfxItemSet::SetParent( const SfxItemSet* pNew ) { - _pParent = pNew; + m_pParent = pNew; } class SVL_DLLPUBLIC SfxAllItemSet: public SfxItemSet |