Fix compil issues (warnings and missing include)
This commit is contained in:
parent
07c4689fb4
commit
c78e7c5485
|
@ -27,6 +27,7 @@
|
||||||
* @brief implements generic openGL functions that are common to any openGL target
|
* @brief implements generic openGL functions that are common to any openGL target
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <GL/glew.h>
|
||||||
|
|
||||||
#include "openGL_includes.h"
|
#include "openGL_includes.h"
|
||||||
#include "ogl_utils.h"
|
#include "ogl_utils.h"
|
||||||
|
|
|
@ -111,7 +111,7 @@ public:
|
||||||
|
|
||||||
bool AppendRows( size_t aNumRows = 1 ) override
|
bool AppendRows( size_t aNumRows = 1 ) override
|
||||||
{
|
{
|
||||||
for( int i = 0; i < aNumRows; ++i )
|
for( size_t i = 0; i < aNumRows; ++i )
|
||||||
m_items.emplace_back( wxT( "" ), true, F_SilkS );
|
m_items.emplace_back( wxT( "" ), true, F_SilkS );
|
||||||
|
|
||||||
if( GetView() )
|
if( GetView() )
|
||||||
|
@ -247,7 +247,7 @@ bool PANEL_MODEDIT_DEFAULTS::TransferDataToWindow()
|
||||||
// Footprint defaults
|
// Footprint defaults
|
||||||
m_textItemsGrid->GetTable()->AppendRows( m_brdSettings.m_DefaultFPTextItems.size() );
|
m_textItemsGrid->GetTable()->AppendRows( m_brdSettings.m_DefaultFPTextItems.size() );
|
||||||
|
|
||||||
for( int i = 0; i < m_brdSettings.m_DefaultFPTextItems.size(); ++i )
|
for( size_t i = 0; i < m_brdSettings.m_DefaultFPTextItems.size(); ++i )
|
||||||
{
|
{
|
||||||
TEXT_ITEM_INFO item = m_brdSettings.m_DefaultFPTextItems[i];
|
TEXT_ITEM_INFO item = m_brdSettings.m_DefaultFPTextItems[i];
|
||||||
|
|
||||||
|
@ -289,7 +289,7 @@ bool PANEL_MODEDIT_DEFAULTS::Show( bool aShow )
|
||||||
|
|
||||||
if( aShow && m_firstShow )
|
if( aShow && m_firstShow )
|
||||||
{
|
{
|
||||||
m_layerClassesGrid->SetColumnWidth( 0, m_layerClassesGrid->GetColumnWidth( 0 ) + 1 );
|
m_layerClassesGrid->SetColSize( 0, m_layerClassesGrid->GetColSize( 0 ) + 1 );
|
||||||
m_firstShow = false;
|
m_firstShow = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1052,7 +1052,7 @@ MODULE* PCB_BASE_FRAME::CreateNewModule( const wxString& aModuleName )
|
||||||
module->Value().SetPosition( default_pos );
|
module->Value().SetPosition( default_pos );
|
||||||
default_pos.y += settings.GetTextSize( layer ).y;
|
default_pos.y += settings.GetTextSize( layer ).y;
|
||||||
|
|
||||||
for( int i = 2; i < settings.m_DefaultFPTextItems.size(); ++i )
|
for( size_t i = 2; i < settings.m_DefaultFPTextItems.size(); ++i )
|
||||||
{
|
{
|
||||||
TEXTE_MODULE* textItem = new TEXTE_MODULE( module );
|
TEXTE_MODULE* textItem = new TEXTE_MODULE( module );
|
||||||
textItem->SetText( settings.m_DefaultFPTextItems[i].m_Text );
|
textItem->SetText( settings.m_DefaultFPTextItems[i].m_Text );
|
||||||
|
|
Loading…
Reference in New Issue