Skip to content
Permalink
Browse files

Initialize variables

Coverity fixe
  • Loading branch information
m-kuhn committed Jul 9, 2016
1 parent c3edae1 commit 831337c95a074773fad2aa48d39de84ec756d8c1
Showing with 8 additions and 4 deletions.
  1. +4 −0 src/gui/qgsmaplayerconfigwidgetfactory.cpp
  2. +4 −4 src/gui/qgsmaplayerconfigwidgetfactory.h
@@ -16,13 +16,17 @@
#include "qgsmaplayerconfigwidgetfactory.h"

QgsMapLayerConfigWidgetFactory::QgsMapLayerConfigWidgetFactory()
: mSupportsDock( true )
, mSupportsProperties( true )
{

}

QgsMapLayerConfigWidgetFactory::QgsMapLayerConfigWidgetFactory( QString title, QIcon icon )
: mIcon( icon )
, mTitle( title )
, mSupportsDock( true )
, mSupportsProperties( true )
{
}

@@ -75,7 +75,7 @@ class GUI_EXPORT QgsMapLayerConfigWidgetFactory
* Set support flag for style dock
* @param supports True if this widget is supported in the style dock.
*/
void setSupportsStyleDock( bool supports ) { mSuppprtsDock = supports; }
void setSupportsStyleDock( bool supports ) { mSupportsDock = supports; }

/**
* Flag if widget is supported for use in layer properties dialog.
@@ -87,7 +87,7 @@ class GUI_EXPORT QgsMapLayerConfigWidgetFactory
* Set support flag for style dock
* @param supports True if this widget is supported in the style dock.
*/
void setSupportLayerPropertiesDialog( bool supports ) { mSuppprtsProperties = supports; }
void setSupportLayerPropertiesDialog( bool supports ) { mSupportsProperties = supports; }

/**
* @brief Check if the layer is supported for this widget.
@@ -109,8 +109,8 @@ class GUI_EXPORT QgsMapLayerConfigWidgetFactory
private:
QIcon mIcon;
QString mTitle;
bool mSuppprtsDock;
bool mSuppprtsProperties;
bool mSupportsDock;
bool mSupportsProperties;
};

#endif // QGSMAPLAYERCONFIGWIDGETFACTORY_H

0 comments on commit 831337c

Please sign in to comment.
You can’t perform that action at this time.