Kaydet (Commit) e5d9bbbc authored tarafından Matteo Casalin's avatar Matteo Casalin

Reorder data members and initialize all of them

Change-Id: I42cf63602fa5f15d199fc70e9c343f481e8668e2
üst 55f44820
...@@ -72,14 +72,17 @@ SwAccessiblePortionData::SwAccessiblePortionData( ...@@ -72,14 +72,17 @@ SwAccessiblePortionData::SwAccessiblePortionData(
pTxtNode( pTxtNd ), pTxtNode( pTxtNd ),
aBuffer(), aBuffer(),
nModelPosition( 0 ), nModelPosition( 0 ),
bFinished( false ),
pViewOptions( pViewOpt ), pViewOptions( pViewOpt ),
sAccessibleString(), sAccessibleString(),
aLineBreaks(), aLineBreaks(),
aModelPositions(), aModelPositions(),
aAccessiblePositions(), aAccessiblePositions(),
aFieldPosition(),
aAttrFieldType(),
aPortionAttrs(),
pSentences( 0 ), pSentences( 0 ),
nBeforePortions( 0 ), nBeforePortions( 0 ),
bFinished( false ),
bLastIsSpecial( false ) bLastIsSpecial( false )
{ {
OSL_ENSURE( pTxtNode != NULL, "Text node is needed!" ); OSL_ENSURE( pTxtNode != NULL, "Text node is needed!" );
......
...@@ -43,7 +43,6 @@ class SwAccessiblePortionData : public SwPortionHandler ...@@ -43,7 +43,6 @@ class SwAccessiblePortionData : public SwPortionHandler
// variables used while collecting the data // variables used while collecting the data
OUStringBuffer aBuffer; OUStringBuffer aBuffer;
sal_Int32 nModelPosition; sal_Int32 nModelPosition;
bool bFinished;
const SwViewOption* pViewOptions; const SwViewOption* pViewOptions;
// the accessible string // the accessible string
...@@ -67,6 +66,7 @@ class SwAccessiblePortionData : public SwPortionHandler ...@@ -67,6 +66,7 @@ class SwAccessiblePortionData : public SwPortionHandler
Positions_t* pSentences; /// positions of sentence breaks Positions_t* pSentences; /// positions of sentence breaks
size_t nBeforePortions; /// # of portions before first model character size_t nBeforePortions; /// # of portions before first model character
bool bFinished;
bool bLastIsSpecial; /// set if last portion was 'Special()' bool bLastIsSpecial; /// set if last portion was 'Special()'
/// returns the index of the first position whose value is smaller /// returns the index of the first position whose value is smaller
......
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