为什么我的expected ';' before 'RegistrationHandler'
代码中有一个,找不到错误?
Q_DECL_EXPORT int main(int argc, char **argv)
{
// this is where the server is started etc
Application app(argc, argv);
// localization support
QTranslator translator;
QString locale_string = QLocale().name();
QString filename = QString( "MyApp_%1" ).arg( locale_string );
if (translator.load(filename, "app/native/qm")) {
app.installTranslator( &translator );
}
new MyApp(&app);
const QString uuid(QLatin1String("abc"));
RegistrationHandler *registrationHandler = new RegistrationHandler(uuid, &app);
return Application::exec();
}