Skip to content

Commit 44724f9

Browse files
committedJun 29, 2015
[pal] Use Q_UNUSED rather than custom UNUSED
1 parent dcc25fe commit 44724f9

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed
 

‎src/core/pal/problem.cpp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@
5353
#include "util.h"
5454
#include "priorityqueue.h"
5555

56-
#define UNUSED(x) (void)x;
57-
5856
namespace pal
5957
{
6058

@@ -225,7 +223,7 @@ namespace pal
225223
delete[] ok;
226224
}
227225

228-
/**
226+
/**
229227
* \brief Basic initial solution : every feature to -1
230228
*/
231229
void Problem::init_sol_empty()
@@ -1608,7 +1606,7 @@ namespace pal
16081606
#ifdef _DEBUG_FULL_
16091607
std::cout << "catch int " << i << std::endl;
16101608
#else
1611-
UNUSED( i );
1609+
Q_UNUSED( i );
16121610
#endif
16131611
while ( conflicts->size() > 0 )
16141612
conflicts->pop_front();
@@ -1898,7 +1896,7 @@ namespace pal
18981896
#ifdef _DEBUG_FULL_
18991897
std::cout << "catch Cycle in chain" << std::endl;
19001898
#else
1901-
UNUSED( i );
1899+
Q_UNUSED( i );
19021900
#endif
19031901
while ( conflicts->size() > 0 )
19041902
conflicts->pop_front();
@@ -1966,7 +1964,7 @@ namespace pal
19661964
}
19671965

19681966

1969-
/**
1967+
/**
19701968
* POPMUSIC, chain
19711969
*/
19721970
double Problem::popmusic_chain( SubPart *part )
@@ -2123,7 +2121,7 @@ namespace pal
21232121

21242122

21252123

2126-
/**
2124+
/**
21272125
*
21282126
* POPMUSIC, Tabu search with chain'
21292127
*

0 commit comments

Comments
 (0)
Please sign in to comment.