diff options
author | Lei Zhang <thestig@chromium.org> | 2015-08-13 15:24:19 -0700 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-08-13 15:24:19 -0700 |
commit | 388a3b0b8d6f75d47978c08299300f121f04884c (patch) | |
tree | fadc1a463409d762d66f3f82ea75af497b9c3268 /fpdfsdk/src/pdfwindow/PWL_Wnd.cpp | |
parent | 5312f9a6ed88e653f4cfb604d892ca18da75e721 (diff) | |
download | pdfium-388a3b0b8d6f75d47978c08299300f121f04884c.tar.xz |
Remove if checks after new.
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1287863002 .
Diffstat (limited to 'fpdfsdk/src/pdfwindow/PWL_Wnd.cpp')
-rw-r--r-- | fpdfsdk/src/pdfwindow/PWL_Wnd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/src/pdfwindow/PWL_Wnd.cpp b/fpdfsdk/src/pdfwindow/PWL_Wnd.cpp index 81bbbbfe8e..7b765f3e4f 100644 --- a/fpdfsdk/src/pdfwindow/PWL_Wnd.cpp +++ b/fpdfsdk/src/pdfwindow/PWL_Wnd.cpp @@ -685,8 +685,8 @@ void CPWL_Wnd::CreateVScrollBar(const PWL_CREATEPARAM& cp) { scp.eCursorType = FXCT_ARROW; scp.nTransparency = PWL_SCROLLBAR_TRANSPARANCY; - if ((m_pVScrollBar = new CPWL_ScrollBar(SBT_VSCROLL))) - m_pVScrollBar->Create(scp); + m_pVScrollBar = new CPWL_ScrollBar(SBT_VSCROLL); + m_pVScrollBar->Create(scp); } } |