diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2014-07-23 09:59:54 +0200 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2014-07-23 11:25:38 +0200 |
commit | 64f0d275154142ed29010f2a693da21b78ee9c7f (patch) | |
tree | 6cc51004badb4b6fdd80cafbed90a2d17910e14d /sw/source | |
parent | b880be3c5496e8f718943f8892744c45fe08e833 (diff) |
reduce SwSaveTypeCountContent to a MarkEntry: step 2
Change-Id: Ic60280439a55206ee52b4dcf0f802abf78cf5f2b
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/doc/docbm.cxx | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/sw/source/core/doc/docbm.cxx b/sw/source/core/doc/docbm.cxx index 6b18260eec3c..189baf465263 100644 --- a/sw/source/core/doc/docbm.cxx +++ b/sw/source/core/doc/docbm.cxx @@ -1389,29 +1389,28 @@ namespace bool m_isMark; sal_Int32 m_nCntnt; }; - class _SwSaveTypeCountContent + class _SwSaveTypeCountContent : public MarkEntry { - bool bCharBound; sal_uInt16 nCount; sal_Int32 nContent; public: - _SwSaveTypeCountContent() { bCharBound=false; nCount=0; nContent = 0; } + _SwSaveTypeCountContent() { m_bOther=false; nCount=0; nContent = 0; } _SwSaveTypeCountContent( const std::vector<sal_uLong> &rArr, sal_uInt16& rPos ) { - bCharBound = static_cast<bool>(rArr[ rPos++ ]); + m_bOther = static_cast<bool>(rArr[ rPos++ ]); nCount = static_cast<sal_uInt16>(rArr[ rPos++ ]); nContent = static_cast<sal_Int32>(rArr[ rPos++ ]); } void Add( std::vector<sal_uLong> &rArr ) { - rArr.push_back( bCharBound ); + rArr.push_back( m_bOther ); rArr.push_back( nCount ); rArr.push_back( nContent ); } - void SetCharBound( bool bCB ) { bCharBound = bCB; } - bool IsCharBound() const { return bCharBound; } + void SetCharBound( bool bCB ) { m_bOther = bCB; } + bool IsCharBound() const { return m_bOther; } void SetCount( sal_uInt16 n ) { nCount = n; } sal_uInt16 GetCount() const { return nCount; } |