Fix MSVC C4840 warning
va_start requires trivially copy able classes. wxString is not trivial. The correct thing to do is to use wxChar*
This commit is contained in:
parent
140f76b870
commit
dd1c58dcf5
|
@ -102,7 +102,7 @@ bool DRC_TEST_PROVIDER::reportPhase( const wxString& aMessage )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void DRC_TEST_PROVIDER::reportAux( wxString fmt, ... )
|
void DRC_TEST_PROVIDER::reportAux( const wxChar* fmt, ... )
|
||||||
{
|
{
|
||||||
va_list vargs;
|
va_list vargs;
|
||||||
va_start( vargs, fmt );
|
va_start( vargs, fmt );
|
||||||
|
|
|
@ -103,7 +103,7 @@ protected:
|
||||||
int forEachGeometryItem( const std::vector<KICAD_T>& aTypes, LSET aLayers,
|
int forEachGeometryItem( const std::vector<KICAD_T>& aTypes, LSET aLayers,
|
||||||
const std::function<bool(BOARD_ITEM*)>& aFunc );
|
const std::function<bool(BOARD_ITEM*)>& aFunc );
|
||||||
|
|
||||||
virtual void reportAux( wxString fmt, ... );
|
virtual void reportAux( const wxChar* fmt, ... );
|
||||||
virtual void reportViolation( std::shared_ptr<DRC_ITEM>& item, const VECTOR2I& aMarkerPos,
|
virtual void reportViolation( std::shared_ptr<DRC_ITEM>& item, const VECTOR2I& aMarkerPos,
|
||||||
int aMarkerLayer );
|
int aMarkerLayer );
|
||||||
virtual bool reportProgress( int aCount, int aSize, int aDelta );
|
virtual bool reportProgress( int aCount, int aSize, int aDelta );
|
||||||
|
|
Loading…
Reference in New Issue