diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2009-07-27 21:47:03 +0200 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2009-08-03 14:59:42 +0200 |
commit | d0457b70e33f1a090a91b0037e9254a0e14b8427 (patch) | |
tree | 2984b2db2129ba8cfefeac46d246a4a335b92150 /src/shared/cplusplus/PrettyPrinter.cpp | |
parent | 88549a4b1dbbb16c7d63f176fd870ec8bdb61477 (diff) | |
download | qt-creator-d0457b70e33f1a090a91b0037e9254a0e14b8427.tar.gz |
Compile the C++ parser library with Sun CC 5.9.
Things you mustn't do:
1) end an enum with a comma
2) #include <cxxxx> and not use std::
3) use anonymous structures
All three things are invalid C++. Anonymous structures inside
anonymous unions are allowed by GCC, but that doesn't mean it's valid.
Diffstat (limited to 'src/shared/cplusplus/PrettyPrinter.cpp')
-rw-r--r-- | src/shared/cplusplus/PrettyPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/cplusplus/PrettyPrinter.cpp b/src/shared/cplusplus/PrettyPrinter.cpp index fd274c47d4..1c3ded6410 100644 --- a/src/shared/cplusplus/PrettyPrinter.cpp +++ b/src/shared/cplusplus/PrettyPrinter.cpp @@ -84,7 +84,7 @@ void PrettyPrinter::outToken(unsigned token) oss << ba.constData(); // Print the token itself - QByteArray tt(_contents.constData() + t.begin(), t.length); + QByteArray tt(_contents.constData() + t.begin(), t.f.length); oss << tt.constData(); QString stuff = QString::fromUtf8(oss.str().c_str()); |