summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/pdfwindow/PWL_Caret.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-06-11 13:03:09 -0700
committerLei Zhang <thestig@chromium.org>2015-06-11 13:03:09 -0700
commiteda202769e5c79eba1d2fb5090f6e9cf176e2d4a (patch)
tree733bb60ff089513182403a5ced5ea32f1d330eb0 /fpdfsdk/src/pdfwindow/PWL_Caret.cpp
parent677b8fffb0c76c009ad808ed91a27738e5420254 (diff)
downloadpdfium-eda202769e5c79eba1d2fb5090f6e9cf176e2d4a.tar.xz
Cleanup: Get this rid of "this->" in fpdfsdk/
Also remove commented out code and trailing whitespaces. R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1179653005.
Diffstat (limited to 'fpdfsdk/src/pdfwindow/PWL_Caret.cpp')
-rw-r--r--fpdfsdk/src/pdfwindow/PWL_Caret.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/fpdfsdk/src/pdfwindow/PWL_Caret.cpp b/fpdfsdk/src/pdfwindow/PWL_Caret.cpp
index cdc7d57a9b..e050f3400e 100644
--- a/fpdfsdk/src/pdfwindow/PWL_Caret.cpp
+++ b/fpdfsdk/src/pdfwindow/PWL_Caret.cpp
@@ -131,7 +131,7 @@ CPDF_Rect CPWL_Caret::GetCaretRect() const
{
return CPDF_Rect(m_ptFoot.x,
m_ptFoot.y,
- m_ptHead.x + this->m_fWidth,
+ m_ptHead.x + m_fWidth,
m_ptHead.y);
}
@@ -144,8 +144,8 @@ void CPWL_Caret::SetCaret(FX_BOOL bVisible, const CPDF_Point & ptHead, const CPD
if (m_ptHead.x != ptHead.x || m_ptHead.y != ptHead.y ||
m_ptFoot.x != ptFoot.x || m_ptFoot.y != ptFoot.y)
{
- this->m_ptHead = ptHead;
- this->m_ptFoot = ptFoot;
+ m_ptHead = ptHead;
+ m_ptFoot = ptFoot;
m_bFlash = TRUE;
//Move(GetCaretRect(),FALSE,TRUE);
@@ -154,8 +154,8 @@ void CPWL_Caret::SetCaret(FX_BOOL bVisible, const CPDF_Point & ptHead, const CPD
}
else
{
- this->m_ptHead = ptHead;
- this->m_ptFoot = ptFoot;
+ m_ptHead = ptHead;
+ m_ptFoot = ptFoot;
EndTimer();
BeginTimer(PWL_CARET_FLASHINTERVAL);
@@ -169,8 +169,8 @@ void CPWL_Caret::SetCaret(FX_BOOL bVisible, const CPDF_Point & ptHead, const CPD
}
else
{
- this->m_ptHead = CPDF_Point(0,0);
- this->m_ptFoot = CPDF_Point(0,0);
+ m_ptHead = CPDF_Point(0, 0);
+ m_ptFoot = CPDF_Point(0, 0);
m_bFlash = FALSE;
if (IsVisible())