moc: Remove VC6 workaround
Change-Id: I9022eee72235309303ca384f2d52fc24256af6ec Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
This commit is contained in:
parent
aa2d10750a
commit
507ee19e07
@ -523,11 +523,6 @@ void Generator::generateCode()
|
||||
}
|
||||
if (!purestSuperClass.isEmpty() && !isQObject) {
|
||||
QByteArray superClass = purestSuperClass;
|
||||
// workaround for VC6
|
||||
if (superClass.contains("::")) {
|
||||
fprintf(out, " typedef %s QMocSuperClass;\n", superClass.constData());
|
||||
superClass = "QMocSuperClass";
|
||||
}
|
||||
fprintf(out, " return %s::qt_metacast(_clname);\n", superClass.constData());
|
||||
} else {
|
||||
fprintf(out, " return 0;\n");
|
||||
@ -849,11 +844,6 @@ void Generator::generateMetacall()
|
||||
|
||||
if (!purestSuperClass.isEmpty() && !isQObject) {
|
||||
QByteArray superClass = purestSuperClass;
|
||||
// workaround for VC6
|
||||
if (superClass.contains("::")) {
|
||||
fprintf(out, " typedef %s QMocSuperClass;\n", superClass.constData());
|
||||
superClass = "QMocSuperClass";
|
||||
}
|
||||
fprintf(out, " _id = %s::qt_metacall(_c, _id, _a);\n", superClass.constData());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user