Skip to content
Permalink
Browse files

Remove some unneeded initializations

  • Loading branch information
nyalldawson committed Sep 26, 2017
1 parent a87d352 commit 65170d0e85778fc28e916c94bb560a6a95233b90
@@ -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() )
{

}
@@ -236,7 +236,7 @@ void QgsComposerArrowWidget::on_mStartMarkerLineEdit_textChanged( const QString
}
else
{
mArrow->setStartMarker( QLatin1String( "" ) );
mArrow->setStartMarker( QString() );
}
mArrow->update();
mArrow->endCommand();
@@ -255,7 +255,7 @@ void QgsComposerArrowWidget::on_mEndMarkerLineEdit_textChanged( const QString &t
}
else
{
mArrow->setEndMarker( QLatin1String( "" ) );
mArrow->setEndMarker( QString() );
}
mArrow->update();
mArrow->endCommand();
@@ -62,7 +62,6 @@ QgsComposerItem::QgsComposerItem( QgsComposition *composition, bool manageZValue
, mLastUsedPositionMode( UpperLeft )
, mIsGroupMember( false )
, mCurrentExportLayer( -1 )
, mId( QLatin1String( "" ) )
, mUuid( QUuid::createUuid().toString() )
{
init( manageZValue );
@@ -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 );
@@ -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;" );
@@ -179,7 +179,6 @@ const int QgsRendererRangeLabelFormat::MIN_PRECISION = -6;

QgsRendererRangeLabelFormat::QgsRendererRangeLabelFormat()
: mFormat( QStringLiteral( " %1 - %2 " ) )
, mNumberSuffix( QLatin1String( "" ) )
, mReTrailingZeroes( "[.,]?0*$" )
, mReNegativeZero( "^\\-0(?:[.,]0*)?$" )
{
@@ -46,7 +46,6 @@ QgsRelationReferenceWidget::QgsRelationReferenceWidget( QWidget *parent )
, mReferencedFieldIdx( -1 )
, mReferencingFieldIdx( -1 )
, mAllowNull( true )
, mRelationName( QLatin1String( "" ) )
, mShown( false )
, mIsEditable( true )
, mEmbedForm( false )
@@ -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 )
@@ -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 )
@@ -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 )
@@ -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() )
{

0 comments on commit 65170d0

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