我一直在看一个 Qt教程,它使用了我以前从未见过的结构:
(void) new QShortcut(Qt::Key_Enter, this, SLOT(fire()));
(void) new QShortcut(Qt::Key_Return, this, SLOT(fire()));
(void) new QShortcut(Qt::CTRL + Qt::Key_Q, this, SLOT(close()));
我已经在没有的情况下尝试过(void)
它,它仍然可以编译和工作,那么 的目的是(void)
什么?