Fix compil issues.

This commit is contained in:
jean-pierre charras 2018-05-23 11:31:13 +02:00
parent ca548809da
commit 3893c43eb0
2 changed files with 3 additions and 3 deletions

View File

@ -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 <tomasz.wlostowski@cern.ch>
*
* 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;
});

View File

@ -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 ) )
{