Skip to content
Snippets Groups Projects
Commit 2b1d270a authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

REFAC: TestHelper: limit the scope of variables

parent 5f4c7b30
No related branches found
No related tags found
No related merge requests found
...@@ -133,9 +133,6 @@ int TestHelper::RegressionTestAsciiFile(const char * testAsciiFileName, const ch ...@@ -133,9 +133,6 @@ int TestHelper::RegressionTestAsciiFile(const char * testAsciiFileName, const ch
{ {
strfileref = *itRef; strfileref = *itRef;
strfiletest = *itTest; strfiletest = *itTest;
otb::StringStream buffstreamRef, buffstreamTest;
buffstreamRef << strfileref;
//Check is the current line should be ignored //Check is the current line should be ignored
bool ignoreCurrentLineRef = false; bool ignoreCurrentLineRef = false;
...@@ -164,6 +161,8 @@ int TestHelper::RegressionTestAsciiFile(const char * testAsciiFileName, const ch ...@@ -164,6 +161,8 @@ int TestHelper::RegressionTestAsciiFile(const char * testAsciiFileName, const ch
//ignored one if the order does not matter //ignored one if the order does not matter
if ((!ignoreCurrentLineRef) && (!ignoreCurrentLineTest)) if ((!ignoreCurrentLineRef) && (!ignoreCurrentLineTest))
{ {
otb::StringStream buffstreamRef, buffstreamTest;
buffstreamRef << strfileref;
buffstreamTest << strfiletest; buffstreamTest << strfiletest;
//Number of differences in the current line //Number of differences in the current line
bool differenceFoundInCurrentLine = false; bool differenceFoundInCurrentLine = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment