mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: remove double definition of enum cloud_storage_status
Remove cloud_storage_status from qmlprefs.h. usage to qPref:: enum cloud_storage_status is not used from C, but only from C++, and having the same structure defined multiple times is a maintenance challenge. Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
parent
d02a03983d
commit
2f95141330
8 changed files with 45 additions and 52 deletions
|
@ -2,17 +2,16 @@
|
|||
#include "qPref_private.h"
|
||||
#include "qPref.h"
|
||||
|
||||
|
||||
qPref *qPref::m_instance = NULL;
|
||||
qPref::qPref(QObject *parent) :
|
||||
QObject(parent)
|
||||
{
|
||||
}
|
||||
qPref *qPref::instance()
|
||||
{
|
||||
if (!m_instance)
|
||||
m_instance = new qPref;
|
||||
return m_instance;
|
||||
static qPref *self = new qPref;
|
||||
return self;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void qPref::loadSync(bool doSync)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -7,10 +7,10 @@
|
|||
|
||||
class qPref : public QObject {
|
||||
Q_OBJECT
|
||||
Q_ENUMS(cloud_status);
|
||||
|
||||
public:
|
||||
qPref(QObject *parent = NULL) : QObject(parent) {};
|
||||
~qPref() {};
|
||||
qPref(QObject *parent = NULL);
|
||||
static qPref *instance();
|
||||
|
||||
// Load/Sync local settings (disk) and struct preference
|
||||
|
@ -19,7 +19,6 @@ public:
|
|||
public:
|
||||
|
||||
private:
|
||||
static qPref *m_instance;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue