@@ -163,15 +163,13 @@ class GenerationError
163163{
164164public:
165165
166- GenerationError ( std::string file , int line , ErrorType err = ErrorType::Unknown ) :
167- _file ( file ), _line( line ), _err( err ){}
166+ GenerationError ( std::string, int , ErrorType err = ErrorType::Unknown ) :
167+ _err ( err ){}
168168
169169 ErrorType GetErrorType () { return (ErrorType) _err; }
170170
171171private:
172172 ErrorType _err;
173- std::string _file;
174- int _line;
175173};
176174
177175//
@@ -316,7 +314,7 @@ class Combination
316314 int Bind ( int val, WorkList& worklist );
317315 int AddBinding ();
318316 int GetBoundCount () const { return m_boundCount; }
319- bool IsFullyBound () const { return m_boundCount == m_params.size (); }
317+ bool IsFullyBound () const { return m_boundCount == static_cast < int >( m_params.size () ); }
320318
321319 void SetOpen ( int n );
322320 bool IsOpen ( int n ) const { return OPEN == m_bitvec[ n ]; }
@@ -375,9 +373,9 @@ class Parameter
375373{
376374public:
377375 Parameter ( int order, int sequence, int valueCount, std::wstring name, bool expectedResultParam ) :
378- m_order ( order ), m_sequence( sequence ), m_valueCount( valueCount ),
379- m_name ( name ), m_expResultParam( expectedResultParam ), m_valueWeights( 0 ),
380- m_bound ( false ), m_pending( false ), m_avgExclusionSize( 0 )
376+ m_name ( name ), m_order( order ), m_sequence( sequence ), m_valueCount( valueCount ),
377+ m_expResultParam ( expectedResultParam ), m_bound( false ),
378+ m_pending ( false ), m_valueWeights( 0 ), m_avgExclusionSize( 0 )
381379 {
382380 // result params must have order = 1
383381 if ( m_expResultParam ) m_order = 1 ;
@@ -503,7 +501,7 @@ class Model
503501{
504502public:
505503 Model ( const std::wstring& id, GenerationType type, int order, long seed = 0 ) :
506- m_id ( id ), m_generationType( type ), m_order( order ), m_maxRows( 0 ), m_lastParamId( UNDEFINED_ID + 1000 * 1000 ) {
504+ m_id ( id ), m_order( order ), m_maxRows( 0 ), m_generationType( type ), m_lastParamId( UNDEFINED_ID + 1000 * 1000 ) {
507505 SetRandomSeed ( seed );
508506 }
509507 ~Model ();
@@ -613,7 +611,6 @@ class Model
613611
614612 GenerationType m_generationType;
615613
616- Parameter* m_currentParam;
617614 unsigned int m_lastParamId;
618615 long m_totalCombinations;
619616 long m_remainingCombinations;
0 commit comments