Warning removal, patches from Camille 019

This commit is contained in:
unknown 2014-03-16 18:40:23 +01:00 committed by jean-pierre charras
parent 91c53a947a
commit b436924380
11 changed files with 18 additions and 13 deletions

View File

@ -5,7 +5,7 @@
#include <colors.h> // EDA_COLOR_T definition
#include <layers_id_colors_and_visibility.h>
class EDA_HOTKEY_CONFIG;
struct EDA_HOTKEY_CONFIG;
/* Basic class to build a layer list.
* this is an basic abstract class to build a layer list selector.

View File

@ -143,10 +143,11 @@ wxString ReturnKeyNameFromCommandId( EDA_HOTKEY** aList, int aCommandId );
*/
int ReturnKeyCodeFromKeyName( const wxString& keyname );
/* An helper enum for AddHotkeyName function
* In menus we can an a hot key, or an accelerator , or sometimes just a comment
/**
* An helper enum for AddHotkeyName function
* In menus we can add a hot key, or an accelerator , or sometimes just a comment
* Hot keys can perform actions using the current mouse cursor position
* Accelerators performs the same action as the associated menu
* Accelerators perform the same action as the associated menu
* A comment is used in tool tips for some tools (zoom ..)
* to show the hot key that performs this action
*/

View File

@ -155,7 +155,7 @@ struct IO_ERROR // : std::exception
/**
* Class PARSE_ERROR
* Struct PARSE_ERROR
* contains a filename or source description, a problem input line, a line number,
* a byte offset, and an error message which contains the the caller's report and his
* call site information: CPP source file, function, and line number.

View File

@ -61,8 +61,8 @@ class BOARD_ITEM;
class PCB_LAYER_BOX_SELECTOR;
class NETLIST;
class REPORTER;
class PARSE_ERROR;
class IO_ERROR;
struct PARSE_ERROR;
struct IO_ERROR;
class FP_LIB_TABLE;
/**

View File

@ -568,8 +568,8 @@ bool IDF_BOARD::WriteDrills( void )
fprintf( layoutFile, ".DRILLED_HOLES\n" );
std::list<struct IDF_DRILL_DATA*>::iterator ds = drills.begin();
std::list<struct IDF_DRILL_DATA*>::iterator de = drills.end();
std::list<class IDF_DRILL_DATA*>::iterator ds = drills.begin();
std::list<class IDF_DRILL_DATA*>::iterator de = drills.end();
while( ds != de )
{

View File

@ -712,7 +712,7 @@ bool VRML_LAYER::Tesselate( VRML_LAYER* holes )
std::ostringstream ostr;
ostr << "Tesselate():FAILED: " << holes->GetError();
error = ostr.str();
return NULL;
return false;
}
if( Fault )

View File

@ -58,7 +58,7 @@
#define M_PI4 ( M_PI / 4.0 )
#endif
struct GLUtesselator;
class GLUtesselator;
struct VERTEX_3D
{

View File

@ -31,6 +31,8 @@
using boost::optional;
const double PNS_LINE_PLACER::m_shoveLengthThreshold = 1.7;
PNS_LINE_PLACER::PNS_LINE_PLACER( PNS_NODE* aWorld )
{
m_initial_direction = DIRECTION_45( DIRECTION_45::N );

View File

@ -111,7 +111,7 @@ public:
PNS_NODE* GetCurrentNode() const;
private:
static const double m_shoveLengthThreshold = 1.7;
static const double m_shoveLengthThreshold;
bool handleViaPlacement( PNS_LINE& aHead );

View File

@ -28,6 +28,8 @@
using namespace KIGFX;
const double BRIGHT_BOX::LineWidth = 100000.0;
BRIGHT_BOX::BRIGHT_BOX( BOARD_ITEM* aItem ) :
EDA_ITEM( NOT_USED ), // this item is never added to a BOARD so it needs no type
item( aItem )

View File

@ -54,7 +54,7 @@ public:
private:
static const int BrightBoxLayer = ITEM_GAL_LAYER( GP_OVERLAY );
static const KIGFX::COLOR4D BrightColor;
static const double LineWidth = 100000.0;
static const double LineWidth;
BOARD_ITEM* item;
};