Skip to content

Commit

Permalink
Initialize variables
Browse files Browse the repository at this point in the history
Coverity fixe
  • Loading branch information
m-kuhn committed Jul 9, 2016
1 parent c3edae1 commit 831337c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/gui/qgsmaplayerconfigwidgetfactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
{
}

Expand Down
8 changes: 4 additions & 4 deletions src/gui/qgsmaplayerconfigwidgetfactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand All @@ -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.