Skip to content

Commit

Permalink
Remove some unneeded initializations
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 26, 2017
1 parent a87d352 commit 65170d0
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 15 deletions.
6 changes: 4 additions & 2 deletions src/analysis/raster/qgsruggednessfilter.cpp
Expand Up @@ -18,12 +18,14 @@
#include "qgsruggednessfilter.h"
#include <cmath>

QgsRuggednessFilter::QgsRuggednessFilter( const QString &inputFile, const QString &outputFile, const QString &outputFormat ): QgsNineCellFilter( inputFile, outputFile, outputFormat )
QgsRuggednessFilter::QgsRuggednessFilter( const QString &inputFile, const QString &outputFile, const QString &outputFormat )
: QgsNineCellFilter( inputFile, outputFile, outputFormat )
{

}

QgsRuggednessFilter::QgsRuggednessFilter(): QgsNineCellFilter( QLatin1String( "" ), QLatin1String( "" ), QLatin1String( "" ) )
QgsRuggednessFilter::QgsRuggednessFilter()
: QgsNineCellFilter( QString(), QString(), QString() )
{

}
Expand Down
4 changes: 2 additions & 2 deletions src/app/composer/qgscomposerarrowwidget.cpp
Expand Up @@ -236,7 +236,7 @@ void QgsComposerArrowWidget::on_mStartMarkerLineEdit_textChanged( const QString
}
else
{
mArrow->setStartMarker( QLatin1String( "" ) );
mArrow->setStartMarker( QString() );
}
mArrow->update();
mArrow->endCommand();
Expand All @@ -255,7 +255,7 @@ void QgsComposerArrowWidget::on_mEndMarkerLineEdit_textChanged( const QString &t
}
else
{
mArrow->setEndMarker( QLatin1String( "" ) );
mArrow->setEndMarker( QString() );
}
mArrow->update();
mArrow->endCommand();
Expand Down
2 changes: 0 additions & 2 deletions src/core/composer/qgscomposeritem.cpp
Expand Up @@ -62,7 +62,6 @@ QgsComposerItem::QgsComposerItem( QgsComposition *composition, bool manageZValue
, mLastUsedPositionMode( UpperLeft )
, mIsGroupMember( false )
, mCurrentExportLayer( -1 )
, mId( QLatin1String( "" ) )
, mUuid( QUuid::createUuid().toString() )
{
init( manageZValue );
Expand All @@ -87,7 +86,6 @@ QgsComposerItem::QgsComposerItem( qreal x, qreal y, qreal width, qreal height, Q
, mLastUsedPositionMode( UpperLeft )
, mIsGroupMember( false )
, mCurrentExportLayer( -1 )
, mId( QLatin1String( "" ) )
, mUuid( QUuid::createUuid().toString() )
{
init( manageZValue );
Expand Down
1 change: 0 additions & 1 deletion src/core/raster/qgsrasterchecker.cpp
Expand Up @@ -28,7 +28,6 @@
#include <QBuffer>

QgsRasterChecker::QgsRasterChecker()
: mReport( QLatin1String( "" ) )
{
mTabStyle = QStringLiteral( "border-spacing: 0px; border-width: 1px 1px 0 0; border-style: solid;" );
mCellStyle = QStringLiteral( "border-width: 0 0 1px 1px; border-style: solid; font-size: smaller; text-align: center;" );
Expand Down
1 change: 0 additions & 1 deletion src/core/symbology/qgsgraduatedsymbolrenderer.cpp
Expand Up @@ -179,7 +179,6 @@ const int QgsRendererRangeLabelFormat::MIN_PRECISION = -6;

QgsRendererRangeLabelFormat::QgsRendererRangeLabelFormat()
: mFormat( QStringLiteral( " %1 - %2 " ) )
, mNumberSuffix( QLatin1String( "" ) )
, mReTrailingZeroes( "[.,]?0*$" )
, mReNegativeZero( "^\\-0(?:[.,]0*)?$" )
{
Expand Down
1 change: 0 additions & 1 deletion src/gui/editorwidgets/qgsrelationreferencewidget.cpp
Expand Up @@ -46,7 +46,6 @@ QgsRelationReferenceWidget::QgsRelationReferenceWidget( QWidget *parent )
, mReferencedFieldIdx( -1 )
, mReferencingFieldIdx( -1 )
, mAllowNull( true )
, mRelationName( QLatin1String( "" ) )
, mShown( false )
, mIsEditable( true )
, mEmbedForm( false )
Expand Down
3 changes: 0 additions & 3 deletions src/gui/qgsmessagebaritem.cpp
Expand Up @@ -25,7 +25,6 @@

QgsMessageBarItem::QgsMessageBarItem( const QString &text, QgsMessageBar::MessageLevel level, int duration, QWidget *parent )
: QWidget( parent )
, mTitle( QLatin1String( "" ) )
, mText( text )
, mLevel( level )
, mDuration( duration )
Expand Down Expand Up @@ -58,8 +57,6 @@ QgsMessageBarItem::QgsMessageBarItem( const QString &title, const QString &text,

QgsMessageBarItem::QgsMessageBarItem( QWidget *widget, QgsMessageBar::MessageLevel level, int duration, QWidget *parent )
: QWidget( parent )
, mTitle( QLatin1String( "" ) )
, mText( QLatin1String( "" ) )
, mLevel( level )
, mDuration( duration )
, mWidget( widget )
Expand Down
1 change: 0 additions & 1 deletion src/gui/qgsoptionsdialogbase.cpp
Expand Up @@ -42,7 +42,6 @@ QgsOptionsDialogBase::QgsOptionsDialogBase( const QString &settingsKey, QWidget
: QDialog( parent, fl )
, mOptsKey( settingsKey )
, mInit( false )
, mDialogTitle( QLatin1String( "" ) )
, mIconOnly( false )
, mSettings( settings )
, mDelSettings( false )
Expand Down
2 changes: 0 additions & 2 deletions src/plugins/grass/qgsgrassmoduleparam.cpp
Expand Up @@ -797,8 +797,6 @@ QgsGrassModuleGdalInput::QgsGrassModuleGdalInput(
QDomElement &gdesc, QDomNode &gnode, bool direct, QWidget *parent )
: QgsGrassModuleGroupBoxItem( module, key, qdesc, gdesc, gnode, direct, parent )
, mType( type )
, mOgrLayerOption( QLatin1String( "" ) )
, mOgrWhereOption( QLatin1String( "" ) )
{
if ( mTitle.isEmpty() )
{
Expand Down

0 comments on commit 65170d0

Please sign in to comment.