From 3f87271ea6f7c571e7614ef3f984eeba212093b4 Mon Sep 17 00:00:00 2001 From: Pan7 Date: Thu, 27 Apr 2017 21:03:13 +0200 Subject: [PATCH] Fix extraneous parentheses warning --- plugins/vfspk3/unzip.cpp | 2 +- plugins/vfsqlpk3/unzip.cpp | 2 +- radiant/xywindow.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/vfspk3/unzip.cpp b/plugins/vfspk3/unzip.cpp index aa5c2246..27bf3023 100644 --- a/plugins/vfspk3/unzip.cpp +++ b/plugins/vfspk3/unzip.cpp @@ -2074,7 +2074,7 @@ extern int unzReadCurrentFile (unzFile file, void *buf, unsigned len) return UNZ_PARAMERROR; - if ((pfile_in_zip_read_info->read_buffer == NULL)) + if (pfile_in_zip_read_info->read_buffer == NULL) return UNZ_END_OF_LIST_OF_FILE; if (len==0) return 0; diff --git a/plugins/vfsqlpk3/unzip.cpp b/plugins/vfsqlpk3/unzip.cpp index b263c320..18088935 100644 --- a/plugins/vfsqlpk3/unzip.cpp +++ b/plugins/vfsqlpk3/unzip.cpp @@ -2071,7 +2071,7 @@ extern int unzReadCurrentFile (unzFile file, void *buf, unsigned len) return UNZ_PARAMERROR; - if ((pfile_in_zip_read_info->read_buffer == NULL)) + if (pfile_in_zip_read_info->read_buffer == NULL) return UNZ_END_OF_LIST_OF_FILE; if (len==0) return 0; diff --git a/radiant/xywindow.cpp b/radiant/xywindow.cpp index 4d68ad6d..cc5d332b 100644 --- a/radiant/xywindow.cpp +++ b/radiant/xywindow.cpp @@ -1010,7 +1010,7 @@ rectangle_t rectangle_from_area_xy(){ void update_xor_rectangle_xy( XORRectangle& xor_rectangle ){ rectangle_t rectangle; - if ( ( g_qeglobals.d_select_mode == sel_area ) ) { + if ( g_qeglobals.d_select_mode == sel_area ) { rectangle = rectangle_from_area_xy(); } xor_rectangle.set( rectangle );