From 3893c43eb028954223790f81a56d4e260e9a3ae7 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Wed, 23 May 2018 11:31:13 +0200 Subject: [PATCH] Fix compil issues. --- common/dialogs/wx_html_report_panel.cpp | 4 ++-- eeschema/dialogs/dialog_fields_editor_global.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/dialogs/wx_html_report_panel.cpp b/common/dialogs/wx_html_report_panel.cpp index ce7279d95f..48e299326e 100644 --- a/common/dialogs/wx_html_report_panel.cpp +++ b/common/dialogs/wx_html_report_panel.cpp @@ -2,7 +2,7 @@ * This program source code file is part of KiCad, a free EDA CAD application. * * Copyright (C) 2015 CERN - * Copyright (C) 2015-2017 KiCad Developers, see change_log.txt for contributors. + * Copyright (C) 2015-2018 KiCad Developers, see AUTHORS.txt for contributors. * Author: Tomasz Wlostowski * * This program is free software: you can redistribute it and/or modify it @@ -99,7 +99,7 @@ void WX_HTML_REPORT_PANEL::Flush( bool aSort ) if( aSort ) { std::sort( m_report.begin(), m_report.end(), - []( REPORT_LINE& a, REPORT_LINE& b) + []( const REPORT_LINE& a, const REPORT_LINE& b) { return a.severity < b.severity; }); diff --git a/eeschema/dialogs/dialog_fields_editor_global.cpp b/eeschema/dialogs/dialog_fields_editor_global.cpp index b0b7100b1d..eaec4eda45 100644 --- a/eeschema/dialogs/dialog_fields_editor_global.cpp +++ b/eeschema/dialogs/dialog_fields_editor_global.cpp @@ -631,7 +631,7 @@ DIALOG_FIELDS_EDITOR_GLOBAL::~DIALOG_FIELDS_EDITOR_GLOBAL() // Update the config values for the show and group-by checkboxes wxString showTokens, groupTokens; - for( unsigned i = 0; i < m_fieldsCtrl->GetItemCount(); ++i ) + for( int i = 0; i < m_fieldsCtrl->GetItemCount(); ++i ) { if( m_fieldsCtrl->GetToggleValue( i, 1 ) ) {