starmath: Prefix member of SmNodeToTextVisitor

Change-Id: I83f5c5664aca925f874be8ac939356228697d05f
Reviewed-on: https://gerrit.libreoffice.org/33850
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
This commit is contained in:
Takeshi Abe 2017-02-03 06:49:01 +09:00
parent 789ed159fb
commit c0d3916cb7
2 changed files with 5 additions and 5 deletions

View File

@ -446,15 +446,15 @@ private:
Separate( );
}
void Append( const OUString &rText ) {
aCmdText.append( rText );
maCmdText.append( rText );
}
/** Append a blank for separation, if needed */
inline void Separate( ){
if( aCmdText.isEmpty() || aCmdText[ aCmdText.getLength() - 1 ] != ' ' )
aCmdText.append(' ');
if( maCmdText.isEmpty() || maCmdText[ maCmdText.getLength() - 1 ] != ' ' )
maCmdText.append(' ');
}
/** Output text generated from the pNodes */
OUStringBuffer aCmdText;
OUStringBuffer maCmdText;
};
#endif // INCLUDED_STARMATH_INC_VISITORS_HXX

View File

@ -1918,7 +1918,7 @@ void SmSelectionDrawingVisitor::Visit( SmTextNode* pNode )
SmNodeToTextVisitor::SmNodeToTextVisitor( SmNode* pNode, OUString &rText )
{
pNode->Accept( this );
rText = aCmdText.makeStringAndClear();
rText = maCmdText.makeStringAndClear();
}
void SmNodeToTextVisitor::Visit( SmTableNode* pNode )