LayerManagerToolBox: removed function call with no effect
authorTimo Lotterbach <timo.lotterbach@bmw-carit.de>
Thu, 10 May 2012 10:58:11 +0000 (12:58 +0200)
committerTimo Lotterbach <timo.lotterbach@bmw-carit.de>
Thu, 10 May 2012 10:58:11 +0000 (12:58 +0200)
std::string.substr(0) just creates a copy of a string.
This was not required in this context.

LayerManagerExamples/LayerManagerToolBox/src/LayerManagerToolBox.cpp

index 14e754b..8651661 100644 (file)
@@ -353,9 +353,8 @@ bool fillDimension(char * param, t_ilm_int *pArray)
         /*convert the last value*/
         if ( pos == std::string::npos && i==3 ) 
         {
-            tempString = pRes.substr(0);
-            printf("Dim param %s\n",tempString.c_str());        
-            tempArray[i++] = atoi(tempString.c_str());
+            printf("Dim param %s\n",pRes.c_str());
+            tempArray[i++] = atoi(pRes.c_str());
         }
     }
     if (i<4)