Skip to content

Commit

Permalink
Remove some unnecessary initializers
Browse files Browse the repository at this point in the history
From clang-tidy readability-redundant-member-init
  • Loading branch information
nyalldawson committed Sep 11, 2017
1 parent b468ab3 commit ccf0dc8
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 11 deletions.
2 changes: 0 additions & 2 deletions src/app/qgisapp.cpp
Expand Up @@ -607,7 +607,6 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, bool skipVersionCh
: QMainWindow( parent, fl )
, mSplash( splash )
, mShowProjectionTab( false )
, mProjectLastModified()
{
if ( sInstance )
{
Expand Down Expand Up @@ -1219,7 +1218,6 @@ QgisApp::QgisApp()
, mPrevScreenModeMaximized( false )
, mSaveRollbackInProgress( false )
, mTrustedMacros( false )
, mProjectLastModified()
, mProjOpen( 0 )
{
sInstance = this;
Expand Down
2 changes: 0 additions & 2 deletions src/app/qgsclipboard.cpp
Expand Up @@ -41,8 +41,6 @@

QgsClipboard::QgsClipboard()
: QObject()
, mFeatureClipboard()
, mFeatureFields()
, mUseSystemClipboard( false )
{
connect( QApplication::clipboard(), &QClipboard::dataChanged, this, &QgsClipboard::systemClipboardChanged );
Expand Down
2 changes: 0 additions & 2 deletions src/app/qgsprojectproperties.cpp
Expand Up @@ -71,9 +71,7 @@ const char *QgsProjectProperties::GEO_NONE_DESC = QT_TRANSLATE_NOOP( "QgsOptions
QgsProjectProperties::QgsProjectProperties( QgsMapCanvas *mapCanvas, QWidget *parent, Qt::WindowFlags fl )
: QgsOptionsDialogBase( QStringLiteral( "ProjectProperties" ), parent, fl )
, mMapCanvas( mapCanvas )
, mEllipsoidList()
, mEllipsoidIndex( 0 )

{
setupUi( this );
connect( buttonBox, &QDialogButtonBox::helpRequested, this, &QgsProjectProperties::showHelp );
Expand Down
3 changes: 0 additions & 3 deletions src/core/qgsmapsettings.cpp
Expand Up @@ -34,10 +34,8 @@ Q_GUI_EXPORT extern int qt_defaultDpiX();
QgsMapSettings::QgsMapSettings()
: mDpi( qt_defaultDpiX() ) // DPI that will be used by default for QImage instances
, mSize( QSize( 0, 0 ) )
, mExtent()
, mRotation( 0.0 )
, mMagnificationFactor( 1.0 )
, mDestCRS()
, mDatumTransformStore( mDestCRS )
, mBackgroundColor( Qt::white )
, mSelectionColor( Qt::yellow )
Expand All @@ -46,7 +44,6 @@ QgsMapSettings::QgsMapSettings()
, mSegmentationTolerance( M_PI_2 / 90 )
, mSegmentationToleranceType( QgsAbstractGeometry::MaximumAngle )
, mValid( false )
, mVisibleExtent()
, mMapUnitsPerPixel( 1 )
, mScale( 1 )
{
Expand Down
2 changes: 0 additions & 2 deletions src/gui/attributetable/qgsdualview.cpp
Expand Up @@ -41,8 +41,6 @@

QgsDualView::QgsDualView( QWidget *parent )
: QStackedWidget( parent )
, mEditorContext()

{
setupUi( this );

Expand Down

0 comments on commit ccf0dc8

Please sign in to comment.