const'ing variable

This commit is contained in:
DennisOSRM 2012-05-09 21:01:09 +02:00
parent a394973762
commit 6dfea376ee

View File

@ -205,7 +205,7 @@ public:
const NodeID numberOfNodes = _graph->GetNumberOfNodes();
Percent p (numberOfNodes);
unsigned maxThreads = omp_get_max_threads();
const unsigned maxThreads = omp_get_max_threads();
std::vector < _ThreadData* > threadData;
for ( unsigned threadNum = 0; threadNum < maxThreads; ++threadNum ) {
threadData.push_back( new _ThreadData( numberOfNodes ) );