Advertisement
tasuku

Untitled

Sep 21st, 2013
392
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. diff --git a/src/tools/moc/generator.cpp b/src/tools/moc/generator.cpp
  2. index 50da6d2..286ce05 100644
  3. --- a/src/tools/moc/generator.cpp
  4. +++ b/src/tools/moc/generator.cpp
  5. @@ -310,9 +310,9 @@ void Generator::generateCode()
  6. int escapeLen = lengthOfEscapeSequence(s, backSlashPos);
  7. spanLen = qBound(spanLen, backSlashPos + escapeLen - idx, s.length() - idx);
  8. }
  9. - fwrite(s.constData() + idx, 1, spanLen, out);
  10. - idx += spanLen;
  11. - col += spanLen;
  12. + auto ret = fwrite(s.constData() + idx, 1, spanLen, out);
  13. + idx += ret;
  14. + col += ret;
  15. }
  16.  
  17. fputs("\\0", out);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement