summaryrefslogtreecommitdiff
path: root/starmath/inc/visitors.hxx
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2015-11-21 16:49:07 +0900
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-11-23 08:10:57 +0000
commit3168dbbbe356164369f6b7edfeeb6ad217c56d55 (patch)
tree5458072778677d9af440ac2195a8a8b573bab88f /starmath/inc/visitors.hxx
parent29d2b9fc74fab4216bbf64284833eb1018f33d92 (diff)
starmath: Prefix members of SmCaretPos2LineVisitor
Change-Id: I277a66d32af51af7e28fd424dedd7980619e9d6e Reviewed-on: https://gerrit.libreoffice.org/20104 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'starmath/inc/visitors.hxx')
-rw-r--r--starmath/inc/visitors.hxx17
1 files changed, 9 insertions, 8 deletions
diff --git a/starmath/inc/visitors.hxx b/starmath/inc/visitors.hxx
index 9fb287374bde..b1eeddc74bc0 100644
--- a/starmath/inc/visitors.hxx
+++ b/starmath/inc/visitors.hxx
@@ -134,23 +134,24 @@ class SmCaretPos2LineVisitor : public SmDefaultingVisitor
{
public:
/** Given position and device this constructor will compute a line for the caret */
- SmCaretPos2LineVisitor( OutputDevice *pDevice, SmCaretPos position ) {
- pDev = pDevice;
- pos = position;
+ SmCaretPos2LineVisitor( OutputDevice *pDevice, SmCaretPos position )
+ : mpDev( pDevice )
+ , maPos( position )
+ {
SAL_WARN_IF( !position.IsValid(), "starmath", "Cannot draw invalid position!" );
- pos.pSelectedNode->Accept( this );
+ maPos.pSelectedNode->Accept( this );
}
virtual ~SmCaretPos2LineVisitor() {}
void Visit( SmTextNode* pNode ) override;
using SmDefaultingVisitor::Visit;
SmCaretLine GetResult( ){
- return line;
+ return maLine;
}
private:
- SmCaretLine line;
- VclPtr<OutputDevice> pDev;
- SmCaretPos pos;
+ SmCaretLine maLine;
+ VclPtr<OutputDevice> mpDev;
+ SmCaretPos maPos;
protected:
/** Default method for computing lines for pNodes */
void DefaultVisit( SmNode* pNode ) override;