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