Commit 34b645da authored by Michael Narigon's avatar Michael Narigon Committed by Dick Hollenbeck
Browse files

warnings

parent 3aa390b5
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -60,12 +60,14 @@ int FOOTPRINTS_LISTBOX::GetCount()

void FOOTPRINTS_LISTBOX::SetString( unsigned linecount, const wxString& text )
{
    if( linecount >= m_footprintList.Count() )
        linecount = m_footprintList.Count() - 1;

    if( linecount >= 0 )
    unsigned count = m_footprintList.Count();
    if( count > 0 )
    {
        if( linecount >= count )
            linecount = count - 1;
        m_footprintList[linecount] = text;
    }
}


wxString FOOTPRINTS_LISTBOX::GetSelectedFootprint()
+6 −4
Original line number Diff line number Diff line
@@ -60,12 +60,14 @@ int LIBRARY_LISTBOX::GetCount()

void LIBRARY_LISTBOX::SetString( unsigned linecount, const wxString& text )
{
    if( linecount >= m_libraryList.Count() )
        linecount = m_libraryList.Count() - 1;

    if( linecount >= 0 )
    unsigned count = m_libraryList.Count();
    if( count > 0 )
    {
        if( linecount >= count )
            linecount = count - 1;
        m_libraryList[linecount] = text;
    }
}


wxString LIBRARY_LISTBOX::GetSelectedLibrary()
+1 −1
Original line number Diff line number Diff line
#ifndef DATAFILE_READ_WRITE_H_
#define PDATAFILE_READ_WRITE_H_
#define DATAFILE_READ_WRITE_H_
/*
 * This program source code file is part of KiCad, a free EDA CAD application.
 *
+2 −2
Original line number Diff line number Diff line
@@ -713,8 +713,8 @@ void FOOTPRINT_VIEWER_FRAME::OnIterateFootprintList( wxCommandEvent& event )
        break;

    default:
        wxFAIL_MSG( wxT( "FOOTPRINT_VIEWER_FRAME::OnIterateFootprintList error: id = " ) +
                    event.GetId() );
        wxString id = wxString::Format(wxT("%i"),event.GetId());
        wxFAIL_MSG( wxT( "FOOTPRINT_VIEWER_FRAME::OnIterateFootprintList error: id = " ) + id );
    }
}