Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[pal] Use Q_UNUSED rather than custom UNUSED
  • Loading branch information
nyalldawson committed Jun 29, 2015
1 parent dcc25fe commit 44724f9
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/core/pal/problem.cpp
Expand Up @@ -53,8 +53,6 @@
#include "util.h"
#include "priorityqueue.h"

#define UNUSED(x) (void)x;

namespace pal
{

Expand Down Expand Up @@ -225,7 +223,7 @@ namespace pal
delete[] ok;
}

/**
/**
* \brief Basic initial solution : every feature to -1
*/
void Problem::init_sol_empty()
Expand Down Expand Up @@ -1608,7 +1606,7 @@ namespace pal
#ifdef _DEBUG_FULL_
std::cout << "catch int " << i << std::endl;
#else
UNUSED( i );
Q_UNUSED( i );
#endif
while ( conflicts->size() > 0 )
conflicts->pop_front();
Expand Down Expand Up @@ -1898,7 +1896,7 @@ namespace pal
#ifdef _DEBUG_FULL_
std::cout << "catch Cycle in chain" << std::endl;
#else
UNUSED( i );
Q_UNUSED( i );
#endif
while ( conflicts->size() > 0 )
conflicts->pop_front();
Expand Down Expand Up @@ -1966,7 +1964,7 @@ namespace pal
}


/**
/**
* POPMUSIC, chain
*/
double Problem::popmusic_chain( SubPart *part )
Expand Down Expand Up @@ -2123,7 +2121,7 @@ namespace pal



/**
/**
*
* POPMUSIC, Tabu search with chain'
*
Expand Down

0 comments on commit 44724f9

Please sign in to comment.