using c++11
This commit is contained in:
parent
2b78922b43
commit
ed77fc54e1
@ -185,8 +185,7 @@ QskDialog::DialogCode QskDialogWindow::exec()
|
|||||||
connect( this, &QskDialogWindow::finished, &eventLoop, &QEventLoop::quit );
|
connect( this, &QskDialogWindow::finished, &eventLoop, &QEventLoop::quit );
|
||||||
( void ) eventLoop.exec( QEventLoop::DialogExec );
|
( void ) eventLoop.exec( QEventLoop::DialogExec );
|
||||||
|
|
||||||
const QskDialog::DialogCode result =
|
const auto result = static_cast< QskDialog::DialogCode >( m_data->result );
|
||||||
static_cast< QskDialog::DialogCode >( m_data->result );
|
|
||||||
|
|
||||||
if ( deleteOnClose )
|
if ( deleteOnClose )
|
||||||
delete this;
|
delete this;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user