summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-06-09 14:01:00 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-06-09 14:01:00 +0100
commitcb14e2f4c9eebd3e2291bd641758ebdd119384c8 (patch)
treeb05b2780300fe9dd0d585de935d45d4cb316d88a
parente5cf6231c3512db13caf8c8f7c26c2f147489a20 (diff)
WaE: on some random compiler or other
-rw-r--r--sal/qa/osl/file/osl_old_test_file.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/sal/qa/osl/file/osl_old_test_file.cxx b/sal/qa/osl/file/osl_old_test_file.cxx
index 23e16aeed4fb..f280905be361 100644
--- a/sal/qa/osl/file/osl_old_test_file.cxx
+++ b/sal/qa/osl/file/osl_old_test_file.cxx
@@ -214,10 +214,12 @@ void oldtestfile::test_file_003()
CPPUNIT_ASSERT_MESSAGE("failure #4", target.getLength() >= dir.getLength() );
if( target.getLength() >= dir.getLength() )
{
- int j;
- for( j = dir.getLength() ;
- j < target.getLength() &&
- aSource3[i+1][j-dir.getLength()] == target[j] ; j++ );
+ int j = dir.getLength();
+ while (j < target.getLength() &&
+ aSource3[i+1][j-dir.getLength()] == target[j])
+ {
+ ++j;
+ }
CPPUNIT_ASSERT_MESSAGE("failure #5", j == target.getLength() );
}
}