Kaydet (Commit) f591a096 authored tarafından Miklos Vajna's avatar Miklos Vajna

sw: prefix members of SwAttrSetChg

Change-Id: Ie24194fe04dafbc447cf8a8a015316e9ba6e9ac9
Reviewed-on: https://gerrit.libreoffice.org/21071Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
Tested-by: 's avatarJenkins <ci@libreoffice.org>
üst 29be1b06
...@@ -192,27 +192,27 @@ public: ...@@ -192,27 +192,27 @@ public:
*/ */
class SwAttrSetChg: public SwMsgPoolItem class SwAttrSetChg: public SwMsgPoolItem
{ {
bool bDelSet; bool m_bDelSet;
SwAttrSet* pChgSet; ///< what has changed SwAttrSet* m_pChgSet; ///< what has changed
const SwAttrSet* pTheChgdSet; ///< is only used to compare const SwAttrSet* m_pTheChgdSet; ///< is only used to compare
public: public:
SwAttrSetChg( const SwAttrSet& rTheSet, SwAttrSet& rSet ); SwAttrSetChg( const SwAttrSet& rTheSet, SwAttrSet& rSet );
SwAttrSetChg( const SwAttrSetChg& ); SwAttrSetChg( const SwAttrSetChg& );
virtual ~SwAttrSetChg(); virtual ~SwAttrSetChg();
/// What has changed /// What has changed
const SwAttrSet* GetChgSet() const { return pChgSet; } const SwAttrSet* GetChgSet() const { return m_pChgSet; }
SwAttrSet* GetChgSet() { return pChgSet; } SwAttrSet* GetChgSet() { return m_pChgSet; }
/// Where it has changed /// Where it has changed
const SwAttrSet* GetTheChgdSet() const { return pTheChgdSet; } const SwAttrSet* GetTheChgdSet() const { return m_pTheChgdSet; }
sal_uInt16 Count() const { return pChgSet->Count(); } sal_uInt16 Count() const { return m_pChgSet->Count(); }
void ClearItem( sal_uInt16 nWhichL = 0 ) void ClearItem( sal_uInt16 nWhichL = 0 )
#ifdef DBG_UTIL #ifdef DBG_UTIL
; ;
#else #else
{ pChgSet->ClearItem( nWhichL ); } { m_pChgSet->ClearItem( nWhichL ); }
#endif #endif
}; };
......
...@@ -78,31 +78,31 @@ SwAutoFormatGetDocNode::SwAutoFormatGetDocNode( const SwNodes* pNds ) ...@@ -78,31 +78,31 @@ SwAutoFormatGetDocNode::SwAutoFormatGetDocNode( const SwNodes* pNds )
SwAttrSetChg::SwAttrSetChg( const SwAttrSet& rTheSet, SwAttrSet& rSet ) SwAttrSetChg::SwAttrSetChg( const SwAttrSet& rTheSet, SwAttrSet& rSet )
: SwMsgPoolItem( RES_ATTRSET_CHG ), : SwMsgPoolItem( RES_ATTRSET_CHG ),
bDelSet( false ), m_bDelSet( false ),
pChgSet( &rSet ), m_pChgSet( &rSet ),
pTheChgdSet( &rTheSet ) m_pTheChgdSet( &rTheSet )
{ {
} }
SwAttrSetChg::SwAttrSetChg( const SwAttrSetChg& rChgSet ) SwAttrSetChg::SwAttrSetChg( const SwAttrSetChg& rChgSet )
: SwMsgPoolItem( RES_ATTRSET_CHG ), : SwMsgPoolItem( RES_ATTRSET_CHG ),
bDelSet( true ), m_bDelSet( true ),
pTheChgdSet( rChgSet.pTheChgdSet ) m_pTheChgdSet( rChgSet.m_pTheChgdSet )
{ {
pChgSet = new SwAttrSet( *rChgSet.pChgSet ); m_pChgSet = new SwAttrSet( *rChgSet.m_pChgSet );
} }
SwAttrSetChg::~SwAttrSetChg() SwAttrSetChg::~SwAttrSetChg()
{ {
if( bDelSet ) if( m_bDelSet )
delete pChgSet; delete m_pChgSet;
} }
#ifdef DBG_UTIL #ifdef DBG_UTIL
void SwAttrSetChg::ClearItem( sal_uInt16 nWhch ) void SwAttrSetChg::ClearItem( sal_uInt16 nWhch )
{ {
OSL_ENSURE( bDelSet, "The Set may not be changed!" ); OSL_ENSURE( m_bDelSet, "The Set may not be changed!" );
pChgSet->ClearItem( nWhch ); m_pChgSet->ClearItem( nWhch );
} }
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment