mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
use static local instead of pointer/global to make windows and possibly valgrind happy (followup 9e6e62d9c)
This commit is contained in:
parent
9e6e62d9c8
commit
572bda85ab
@ -20,14 +20,10 @@
|
||||
#include "qgsvectorlayer.h"
|
||||
#include "qgsmessagelog.h"
|
||||
|
||||
|
||||
QgsEditorWidgetRegistry *QgsEditorWidgetRegistry::sInstance = 0;
|
||||
|
||||
QgsEditorWidgetRegistry* QgsEditorWidgetRegistry::instance()
|
||||
{
|
||||
if ( !sInstance )
|
||||
sInstance = new QgsEditorWidgetRegistry();
|
||||
return sInstance;
|
||||
static QgsEditorWidgetRegistry sInstance;
|
||||
return &sInstance;
|
||||
}
|
||||
|
||||
QgsEditorWidgetRegistry::QgsEditorWidgetRegistry()
|
||||
|
@ -112,7 +112,6 @@ class GUI_EXPORT QgsEditorWidgetRegistry : public QObject
|
||||
|
||||
private:
|
||||
QMap<QString, QgsEditorWidgetFactory*> mWidgetFactories;
|
||||
static QgsEditorWidgetRegistry *sInstance;
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user