[Libreoffice-commits] core.git: sw/source
Miklos Vajna
vmiklos at suse.cz
Thu Apr 18 00:55:47 PDT 2013
sw/source/core/inc/drawfont.hxx | 20 ++++++++++----------
sw/source/core/txtnode/swfont.cxx | 10 +++++-----
2 files changed, 15 insertions(+), 15 deletions(-)
New commits:
commit e35b772e44096c3a5d1077df7b243fae08e33621
Author: Miklos Vajna <vmiklos at suse.cz>
Date: Thu Apr 18 09:38:05 2013 +0200
SwDrawTextInfo: confusing p prefix for non-pointers
Change-Id: Id5b055081f8bed3399326aa0e1c6372edf4da29f
diff --git a/sw/source/core/inc/drawfont.hxx b/sw/source/core/inc/drawfont.hxx
index f4a8b3d..c61ae9f 100644
--- a/sw/source/core/inc/drawfont.hxx
+++ b/sw/source/core/inc/drawfont.hxx
@@ -42,12 +42,12 @@ class SwDrawTextInfo
OutputDevice* pOut;
ViewShell* pSh;
const SwScriptInfo* pScriptInfo;
- Point pPos;
- OUString pText;
+ Point m_aPos;
+ OUString m_aText;
const SwWrongList* pWrong;
const SwWrongList* pGrammarCheck;
const SwWrongList* pSmartTags;
- Size pSize;
+ Size m_aSize;
SwFont *pFnt;
SwUnderlineFont* pUnderFnt;
xub_StrLen* pHyphPos;
@@ -111,7 +111,7 @@ public:
pSh = pS;
pOut = &rO;
pScriptInfo = pSI;
- pText = rSt;
+ m_aText = rSt;
nIdx = nI;
nLen = nL;
nKern = 0;
@@ -190,7 +190,7 @@ public:
#ifdef DBG_UTIL
OSL_ENSURE( m_bPos, "DrawTextInfo: Undefined Position" );
#endif
- return pPos;
+ return m_aPos;
}
xub_StrLen *GetHyphPos() const
@@ -203,7 +203,7 @@ public:
const OUString &GetText() const
{
- return pText;
+ return m_aText;
}
const SwWrongList* GetWrong() const
@@ -232,7 +232,7 @@ public:
#ifdef DBG_UTIL
OSL_ENSURE( m_bSize, "DrawTextInfo: Undefined Size" );
#endif
- return pSize;
+ return m_aSize;
}
SwFont* GetFont() const
@@ -400,7 +400,7 @@ public:
void SetPos( const Point &rNew )
{
- pPos = rNew;
+ m_aPos = rNew;
#ifdef DBG_UTIL
m_bPos = true;
#endif
@@ -416,7 +416,7 @@ public:
void SetText( const OUString &rNew )
{
- pText = rNew;
+ m_aText = rNew;
}
void SetWrong( const SwWrongList* pNew )
@@ -442,7 +442,7 @@ public:
void SetSize( const Size &rNew )
{
- pSize = rNew;
+ m_aSize = rNew;
#ifdef DBG_UTIL
m_bSize = true;
#endif
diff --git a/sw/source/core/txtnode/swfont.cxx b/sw/source/core/txtnode/swfont.cxx
index aed2079..52db6ad 100644
--- a/sw/source/core/txtnode/swfont.cxx
+++ b/sw/source/core/txtnode/swfont.cxx
@@ -1163,17 +1163,17 @@ void SwDrawTextInfo::Shift( sal_uInt16 nDir )
switch ( nDir )
{
case 0 :
- pPos.X() += GetSize().Width();
+ m_aPos.X() += GetSize().Width();
break;
case 900 :
- OSL_ENSURE( pPos.Y() >= GetSize().Width(), "Going underground" );
- pPos.Y() -= GetSize().Width();
+ OSL_ENSURE( m_aPos.Y() >= GetSize().Width(), "Going underground" );
+ m_aPos.Y() -= GetSize().Width();
break;
case 1800 :
- pPos.X() -= GetSize().Width();
+ m_aPos.X() -= GetSize().Width();
break;
case 2700 :
- pPos.Y() += GetSize().Width();
+ m_aPos.Y() += GetSize().Width();
break;
}
}
More information about the Libreoffice-commits
mailing list