File tree 2 files changed +5
-7
lines changed
2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -213,10 +213,8 @@ class QgsMapLayerRegistry : QObject
213
213
*/
214
214
void legendLayersAdded( QList<QgsMapLayer*> theMapLayers );
215
215
216
- protected:
217
- //! protected constructor
218
- QgsMapLayerRegistry( QObject * parent = 0 );
219
-
220
216
private:
217
+ QgsMapLayerRegistry(); // private 'cause it's a singleton
218
+
221
219
void connectNotify( const char * signal );
222
220
}; // class QgsMapLayerRegistry
Original file line number Diff line number Diff line change @@ -239,15 +239,15 @@ class CORE_EXPORT QgsMapLayerRegistry : public QObject
239
239
void legendLayersAdded ( QList<QgsMapLayer*> theMapLayers );
240
240
241
241
protected:
242
- // ! protected constructor
243
- QgsMapLayerRegistry ( QObject * parent = 0 );
244
-
245
242
/* * debugging member
246
243
invoked when a connect() is made to this object
247
244
*/
248
245
void connectNotify ( const char * signal );
249
246
250
247
private:
248
+ // ! private singleton constructor
249
+ QgsMapLayerRegistry ( QObject * parent = 0 );
250
+
251
251
static QgsMapLayerRegistry *mInstance ;
252
252
QMap<QString, QgsMapLayer*> mMapLayers ;
253
253
QSet<QgsMapLayer*> mOwnedLayers ;
You can’t perform that action at this time.
0 commit comments