diff options
author | Joerg Bornemann <joerg.bornemann@nokia.com> | 2011-01-10 11:42:39 +0100 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@nokia.com> | 2011-01-10 11:42:39 +0100 |
commit | b55a2a2758b9a57fafb45298bd25310610f3d1db (patch) | |
tree | a01f47ee8c5c242b80aec0393011f534c24b366e | |
parent | e844400ca8468b3a2b25dab7687bab795d2fe54f (diff) |
fix regression introduced by 4827cba4
Fix redone.
-rw-r--r-- | Qt4VS2003/QtProjectLib/CxxStreamReader.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Qt4VS2003/QtProjectLib/CxxStreamReader.cs b/Qt4VS2003/QtProjectLib/CxxStreamReader.cs index 6d5287cf..02425d4f 100644 --- a/Qt4VS2003/QtProjectLib/CxxStreamReader.cs +++ b/Qt4VS2003/QtProjectLib/CxxStreamReader.cs @@ -76,9 +76,9 @@ namespace Nokia.QtProjectLib { string lineCopy = line; line = ""; - for (int i = 0, j = 1; j < lineCopy.Length; ++i, ++j) + for (int i = 0, j = 1; i < lineCopy.Length; ++i, ++j) { - if (lineCopy[i] == '/') + if (lineCopy[i] == '/' && j < lineCopy.Length) { if (lineCopy[j] == '*') { |