From ff46b7b1e508ffa34158b2bfe71d72a28a6185a9 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Fri, 27 Jan 2023 18:17:59 +0100 Subject: [PATCH] fix compil warnings --- common/dialogs/dialog_global_lib_table_config.cpp | 4 ++-- common/view/view.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/dialogs/dialog_global_lib_table_config.cpp b/common/dialogs/dialog_global_lib_table_config.cpp index f861fce7f1..6ed4a1ceb6 100644 --- a/common/dialogs/dialog_global_lib_table_config.cpp +++ b/common/dialogs/dialog_global_lib_table_config.cpp @@ -31,9 +31,9 @@ DIALOG_GLOBAL_LIB_TABLE_CONFIG::DIALOG_GLOBAL_LIB_TABLE_CONFIG( wxWindow* aParen const wxString& aTableName, const KIWAY::FACE_T aFaceType ) : DIALOG_GLOBAL_LIB_TABLE_CONFIG_BASE( aParent ), + m_tableName( aTableName ), m_defaultFileFound( false ), - m_faceType( aFaceType ), - m_tableName( aTableName ) + m_faceType( aFaceType ) { wxString tmp; diff --git a/common/view/view.cpp b/common/view/view.cpp index 645dee1d3b..176a3dc3d2 100644 --- a/common/view/view.cpp +++ b/common/view/view.cpp @@ -333,7 +333,7 @@ void VIEW::Add( VIEW_ITEM* aItem, int aDrawPriority ) for( int i = 0; i < layers_count; ++i ) { - if( layers[i] < 0 || layers[i] >= m_layers.size() ) + if( layers[i] < 0 || layers[i] >= (int)m_layers.size() ) continue; VIEW_LAYER& l = m_layers[layers[i]];