mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 17:37:36 +03:00
f275640343
We simply use a static QObject using Q_GLOBAL_STATIC() instead of allocating a leaking QObject on the heap. Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
13 lines
679 B
C++
13 lines
679 B
C++
// stub to prevent linker error
|
|
#include "accountmanager.h"
|
|
|
|
Q_GLOBAL_STATIC(QObject, dummy)
|
|
|
|
OCC::AccountManager *OCC::AccountManager::instance() { return static_cast<AccountManager *>(dummy()); }
|
|
void OCC::AccountManager::save(bool) { }
|
|
void OCC::AccountManager::saveAccountState(AccountState *) { }
|
|
void OCC::AccountManager::deleteAccount(AccountState *) { }
|
|
void OCC::AccountManager::accountRemoved(OCC::AccountState*) { }
|
|
OCC::AccountStatePtr OCC::AccountManager::account(const QString &){ return AccountStatePtr(); }
|
|
void OCC::AccountManager::removeAccountFolders(OCC::AccountState*) { }
|
|
const QMetaObject OCC::AccountManager::staticMetaObject = QObject::staticMetaObject;
|