[shellprocess] Reduce warnings

- The old-style cast still causes a warning, but do the
   more idiomatic (void) rather then casting to (void*)
This commit is contained in:
Adriaan de Groot 2019-04-11 12:13:30 +02:00
parent 6cfb5a9c88
commit 189e192c83

View File

@ -176,9 +176,9 @@ script:
)" ) ).toMap().value( "script" );
if ( !Calamares::JobQueue::instance() )
(void *)new Calamares::JobQueue( nullptr );
(void)new Calamares::JobQueue( nullptr );
if ( !Calamares::Settings::instance() )
(void *)new Calamares::Settings( QString(), true );
(void)new Calamares::Settings( QString(), true );
Calamares::GlobalStorage* gs = Calamares::JobQueue::instance()->globalStorage();
QVERIFY( gs != nullptr );