Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(728)

Unified Diff: fpdfsdk/src/pdfwindow/PWL_EditCtrl.cpp

Issue 1243883003: Fix else-after-returns throughout pdfium. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: fpdfsdk/src/pdfwindow/PWL_EditCtrl.cpp
diff --git a/fpdfsdk/src/pdfwindow/PWL_EditCtrl.cpp b/fpdfsdk/src/pdfwindow/PWL_EditCtrl.cpp
index f562076f1dc527d46a842abd6fa8d7e274f6a856..b21d1d1d2236033af0c2e60fb0bb445babeee7b6 100644
--- a/fpdfsdk/src/pdfwindow/PWL_EditCtrl.cpp
+++ b/fpdfsdk/src/pdfwindow/PWL_EditCtrl.cpp
@@ -36,7 +36,7 @@ CPWL_EditCtrl::~CPWL_EditCtrl()
IFX_Edit::DelEdit(m_pEdit);
}
-void CPWL_EditCtrl::OnCreate(PWL_CREATEPARAM & cp)
+void CPWL_EditCtrl::OnCreate(PWL_CREATEPARAM& cp)
{
cp.eCursorType = FXCT_VBEAM;
}
@@ -530,10 +530,10 @@ CPDF_Font * CPWL_EditCtrl::GetCaretFont() const
}
}
- if (IFX_Edit_FontMap * pFontMap = GetFontMap())
+ if (IFX_Edit_FontMap* pFontMap = GetFontMap())
return pFontMap->GetPDFFont(nFontIndex);
- else
- return NULL;
+
+ return NULL;
}
FX_FLOAT CPWL_EditCtrl::GetCaretFontSize() const

Powered by Google App Engine
This is Rietveld 408576698