diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qscxmlc/scxmlcppdumper.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/qscxmlc/scxmlcppdumper.cpp b/tools/qscxmlc/scxmlcppdumper.cpp index f6cd968..13c6a4d 100644 --- a/tools/qscxmlc/scxmlcppdumper.cpp +++ b/tools/qscxmlc/scxmlcppdumper.cpp @@ -153,6 +153,8 @@ static QString toHex(const QString &str) const char *headerStart = "#include <QScxmlStateMachine>\n" + "#include <QString>\n" + "#include <QByteArray>\n" "\n"; using namespace DocumentModel; @@ -1127,7 +1129,7 @@ void CppDumper::writeClass(const ClassDump &clazz) h << endl << l("private:") << endl << l(" struct Data;") << endl - << l(" friend Data;") << endl + << l(" friend struct Data;") << endl << l(" struct Data *data;") << endl << l("};") << endl << endl; } |