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

Side by Side Diff: fpdfsdk/cpdfsdk_formfillenvironment.cpp

Issue 2459073002: Continue fixing FX_BOOL / int noise (Closed)
Patch Set: Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include "fpdfsdk/cpdfsdk_formfillenvironment.h" 7 #include "fpdfsdk/cpdfsdk_formfillenvironment.h"
8 8
9 #include <memory> 9 #include <memory>
10 10
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after
759 if (!m_pFocusAnnot) 759 if (!m_pFocusAnnot)
760 return TRUE; 760 return TRUE;
761 } else { 761 } else {
762 m_pFocusAnnot.Reset(pFocusAnnot.Get()); 762 m_pFocusAnnot.Reset(pFocusAnnot.Get());
763 } 763 }
764 } 764 }
765 return FALSE; 765 return FALSE;
766 } 766 }
767 767
768 FX_BOOL CPDFSDK_FormFillEnvironment::GetPermissions(int nFlag) { 768 FX_BOOL CPDFSDK_FormFillEnvironment::GetPermissions(int nFlag) {
769 return GetPDFDocument()->GetUserPermissions() & nFlag; 769 return !!(GetPDFDocument()->GetUserPermissions() & nFlag);
770 } 770 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698