summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-10-30 08:36:04 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-10-30 08:36:04 +0100
commit99261989ddbf4ec0223fe8ed3e874b27edf8843e (patch)
treea029c5c78ff5e5b4ac31694872275eaa71c76ee9
parente794e43a0cedb9b836f0d1d75ad31413ee74cfea (diff)
sw: prefix members of SwFindNearestNode
Change-Id: Iea2094f736837f5aecde2d9ff810dffb062d2315
-rw-r--r--sw/inc/hints.hxx4
-rw-r--r--sw/source/core/attr/hints.cxx10
2 files changed, 7 insertions, 7 deletions
diff --git a/sw/inc/hints.hxx b/sw/inc/hints.hxx
index 97a639773f75..481993d409ce 100644
--- a/sw/inc/hints.hxx
+++ b/sw/inc/hints.hxx
@@ -242,12 +242,12 @@ public:
class SwFindNearestNode : public SwMsgPoolItem
{
- const SwNode *pNd, *pFnd;
+ const SwNode *m_pNode, *m_pFound;
public:
SwFindNearestNode( const SwNode& rNd );
void CheckNode( const SwNode& rNd );
- const SwNode* GetFoundNode() const { return pFnd; }
+ const SwNode* GetFoundNode() const { return m_pFound; }
};
class SwStringMsgPoolItem : public SwMsgPoolItem
diff --git a/sw/source/core/attr/hints.cxx b/sw/source/core/attr/hints.cxx
index abbf1b0c70cf..47d25a70e3ea 100644
--- a/sw/source/core/attr/hints.cxx
+++ b/sw/source/core/attr/hints.cxx
@@ -150,19 +150,19 @@ SwVirtPageNumInfo::SwVirtPageNumInfo( const SwPageFrm *pPg ) :
}
SwFindNearestNode::SwFindNearestNode( const SwNode& rNd )
- : SwMsgPoolItem( RES_FINDNEARESTNODE ), pNd( &rNd ), pFnd( 0 )
+ : SwMsgPoolItem( RES_FINDNEARESTNODE ), m_pNode( &rNd ), m_pFound( 0 )
{
}
void SwFindNearestNode::CheckNode( const SwNode& rNd )
{
- if( &pNd->GetNodes() == &rNd.GetNodes() )
+ if( &m_pNode->GetNodes() == &rNd.GetNodes() )
{
sal_uLong nIdx = rNd.GetIndex();
- if( nIdx < pNd->GetIndex() &&
- ( !pFnd || nIdx > pFnd->GetIndex() ) &&
+ if( nIdx < m_pNode->GetIndex() &&
+ ( !m_pFound || nIdx > m_pFound->GetIndex() ) &&
nIdx > rNd.GetNodes().GetEndOfExtras().GetIndex() )
- pFnd = &rNd;
+ m_pFound = &rNd;
}
}