Commit 8fc33d1b authored by Raphael Kubo da Costa's avatar Raphael Kubo da Costa

Fix a "most vexing parse" case.

clang (apparently correctly) expands unlockInfo as a function declarator
instead of a variable, which is a case of C++'s "most vexing parse".

CCMAIL: kde@rusu.info
parent 81e7c519
......@@ -112,7 +112,7 @@ void KSecretUiTest::testLockCollectionAsync()
void KSecretUiTest::testUnlockCollectionAsync()
{
QVERIFY( m_collection->isLocked() ); // the test above must create the collection in locked state
CollectionUnlockInfo unlockInfo( Peer( QCoreApplication::applicationPid() ));
CollectionUnlockInfo unlockInfo( ( Peer( QCoreApplication::applicationPid() ) ));
UnlockCollectionJob *unlockColl = m_collection->createUnlockJob(unlockInfo);
BackendMaster *master = BackendMaster::instance();
QSignalSpy masterSpy(master, SIGNAL(collectionChanged(BackendCollection*)));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment