1
0
mirror of https://github.com/chylex/Nextcloud-Desktop.git synced 2024-10-24 00:42:48 +02:00
Nextcloud-Desktop/test/stub.cpp
Olivier Goffart 8a08a51540 Fix leaks in tests
As discovered by AddressSanitizer
2018-10-05 19:03:08 +02:00

8 lines
487 B
C++

// stub to prevent linker error
#include "accountmanager.h"
OCC::AccountManager *OCC::AccountManager::instance() { static QObject dummy; return reinterpret_cast<AccountManager *>(&dummy); }
void OCC::AccountManager::saveAccountState(AccountState *) { }
void OCC::AccountManager::save(bool saveCredentials) { Q_UNUSED(saveCredentials); }
void OCC::AccountManager::accountRemoved(OCC::AccountState*) { }
const QMetaObject OCC::AccountManager::staticMetaObject = QObject::staticMetaObject;