Skip to content

Commit b64b3fc

Browse files
committed
indentation update with a few fixed warnings
1 parent 42aed66 commit b64b3fc

24 files changed

+92
-81
lines changed

src/app/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ int main( int argc, char *argv[] )
269269
QgsDebugMsg( QString( "Android: All params stripped" ) );// Param %1" ).arg( argv[0] ) );
270270
//put all QGIS settings in the same place
271271
configpath = QDir::homePath() + QString( "/.qgis/" );
272-
QgsDebugMsg( QString( "Android: configpath set to %1" ).arg(configpath) );
272+
QgsDebugMsg( QString( "Android: configpath set to %1" ).arg( configpath ) );
273273
#elif defined(Q_WS_WIN)
274274
for ( int i = 1; i < argc; i++ )
275275
{

src/app/qgsdecorationitem.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ QgsDecorationItem::~QgsDecorationItem()
5353

5454
}
5555

56-
void QgsDecorationItem::update()
57-
{
56+
void QgsDecorationItem::update()
57+
{
5858
saveToProject();
59-
QgisApp::instance()->mapCanvas()->refresh();
59+
QgisApp::instance()->mapCanvas()->refresh();
6060
}
6161

6262
void QgsDecorationItem::projectRead()
@@ -70,11 +70,11 @@ void QgsDecorationItem::saveToProject()
7070
QgsDebugMsg( "Entered" );
7171
QgsProject::instance()->writeEntry( mNameConfig, "/Enabled", mEnabled );
7272
}
73-
void QgsDecorationItem::setName( const char *name )
74-
{
75-
mName = name;
73+
void QgsDecorationItem::setName( const char *name )
74+
{
75+
mName = name;
7676
mNameConfig = name;
7777
mNameConfig.remove( " " );
7878
mNameTranslated = tr( name );
79-
QgsDebugMsg( QString( "name=%1 nameconfig=%2 nametrans=%3").arg(mName).arg(mNameConfig).arg(mNameTranslated) );
79+
QgsDebugMsg( QString( "name=%1 nameconfig=%2 nametrans=%3" ).arg( mName ).arg( mNameConfig ).arg( mNameTranslated ) );
8080
}

src/app/qgsmaptoolfreezelabels.cpp

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,12 @@ void QgsMapToolFreezeLabels::showFrozenLabels( bool show )
118118
mShowFrozen = show;
119119
if ( mShowFrozen )
120120
{
121-
QgsDebugMsg( QString( "Toggling on frozen label highlighting" ));
121+
QgsDebugMsg( QString( "Toggling on frozen label highlighting" ) );
122122
highlightFrozenLabels();
123123
}
124124
else
125125
{
126-
QgsDebugMsg( QString( "Toggling off frozen label highlighting" ));
126+
QgsDebugMsg( QString( "Toggling off frozen label highlighting" ) );
127127
removeFrozenHighlights();
128128
}
129129
}
@@ -133,15 +133,15 @@ void QgsMapToolFreezeLabels::updateFrozenLabels()
133133
{
134134
if ( mShowFrozen )
135135
{
136-
QgsDebugMsg( QString( "Updating highlighting due to layer editing mode change" ));
136+
QgsDebugMsg( QString( "Updating highlighting due to layer editing mode change" ) );
137137
mCanvas->refresh();
138138
}
139139
}
140140

141141
void QgsMapToolFreezeLabels::highlightLabel( QgsVectorLayer* vlayer,
142-
const QgsLabelPosition& labelpos,
143-
const QString& id,
144-
const QColor& color )
142+
const QgsLabelPosition& labelpos,
143+
const QString& id,
144+
const QColor& color )
145145
{
146146
QgsRectangle rect = labelpos.labelRect;
147147

@@ -152,7 +152,7 @@ void QgsMapToolFreezeLabels::highlightLabel( QgsVectorLayer* vlayer,
152152
if ( vlayer->crs() != mRender->destinationCrs() )
153153
{
154154
rect = mRender->mapToLayerCoordinates( vlayer, rect );
155-
QgsDebugMsg( QString( "Reverse transform needed for highlight rectangle" ));
155+
QgsDebugMsg( QString( "Reverse transform needed for highlight rectangle" ) );
156156
}
157157
}
158158

@@ -209,9 +209,9 @@ void QgsMapToolFreezeLabels::highlightFrozenLabels()
209209
{
210210
mCurrentLabelPos = *it;
211211

212-
if( mCurrentLabelPos.isFrozen )
212+
if ( mCurrentLabelPos.isFrozen )
213213
{
214-
QString labelStringID = QString("%0|%1").arg(mCurrentLabelPos.layerID, QString::number( mCurrentLabelPos.featureId ) );
214+
QString labelStringID = QString( "%0|%1" ).arg( mCurrentLabelPos.layerID, QString::number( mCurrentLabelPos.featureId ) );
215215

216216
// don't highlight again
217217
if ( mHighlights.contains( labelStringID ) )
@@ -236,7 +236,7 @@ void QgsMapToolFreezeLabels::highlightFrozenLabels()
236236
lblcolor = QColor( 54, 129, 0, 255 );
237237
}
238238

239-
highlightLabel( vlayer, ( *it ), labelStringID, lblcolor);
239+
highlightLabel( vlayer, ( *it ), labelStringID, lblcolor );
240240
}
241241
}
242242
QApplication::restoreOverrideCursor();
@@ -253,7 +253,7 @@ void QgsMapToolFreezeLabels::removeFrozenHighlights()
253253
QApplication::restoreOverrideCursor();
254254
}
255255

256-
void QgsMapToolFreezeLabels::freezeThawLabels( const QgsRectangle& ext, QMouseEvent * e )
256+
void QgsMapToolFreezeLabels::freezeThawLabels( const QgsRectangle& ext, QMouseEvent * e )
257257
{
258258

259259
bool doThaw = e->modifiers() & Qt::ShiftModifier ? true : false;
@@ -312,10 +312,10 @@ void QgsMapToolFreezeLabels::freezeThawLabels( const QgsRectangle& ext, QMouseEv
312312
continue;
313313
}
314314

315-
QString labelStringID = QString("%0|%1").arg(mCurrentLabelPos.layerID, QString::number( mCurrentLabelPos.featureId ) );
315+
QString labelStringID = QString( "%0|%1" ).arg( mCurrentLabelPos.layerID, QString::number( mCurrentLabelPos.featureId ) );
316316

317317
// thaw label
318-
if ( mCurrentLabelPos.isFrozen && !doHide && ( doThaw || toggleThawOrFreeze ) )
318+
if ( mCurrentLabelPos.isFrozen && !doHide && ( doThaw || toggleThawOrFreeze ) )
319319
{
320320
// thaw previously frozen label (set attribute table fields to NULL)
321321
if ( freezeThawLabel( vlayer, mCurrentLabelPos, false ) )
@@ -370,8 +370,8 @@ void QgsMapToolFreezeLabels::freezeThawLabels( const QgsRectangle& ext, QMouseEv
370370
}
371371

372372
bool QgsMapToolFreezeLabels::freezeThawLabel( QgsVectorLayer* vlayer,
373-
const QgsLabelPosition& labelpos,
374-
bool freeze )
373+
const QgsLabelPosition& labelpos,
374+
bool freeze )
375375
{
376376
// skip diagrams
377377
if ( labelpos.isDiagram )

src/app/qgsmaptoolfreezelabels.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class QgsMapToolFreezeLabels: public QgsMapToolLabel
8989
const QColor& color );
9090

9191
//! Select valid labels to freeze or thaw
92-
void freezeThawLabels( const QgsRectangle& ext, QMouseEvent * e );
92+
void freezeThawLabels( const QgsRectangle& ext, QMouseEvent * e );
9393

9494
//! Freeze or thaw label relative to whether its editable
9595
bool freezeThawLabel( QgsVectorLayer* vlayer,

src/app/qgsrasterlayerproperties.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1570,7 +1570,7 @@ void QgsRasterLayerProperties::updatePipeItems()
15701570
QTreeWidgetItem *item = mPipeTreeWidget->topLevelItem( i );
15711571
if ( !item ) continue;
15721572
// Checkboxes disabled for now, see above
1573-
/*
1573+
#if 0
15741574
bool on = interface->on();
15751575
Qt::ItemFlags flags = item->flags();
15761576
if ( pipe->canSetOn( i, !on ) )
@@ -1582,6 +1582,6 @@ void QgsRasterLayerProperties::updatePipeItems()
15821582
flags |= ( Qt::ItemFlags )~Qt::ItemIsUserCheckable;
15831583
}
15841584
item->setFlags( flags );
1585-
*/
1585+
#endif
15861586
}
15871587
}

src/app/qgsvectorlayerproperties.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,7 @@ void QgsVectorLayerProperties::saveStyleAsMenuTriggered( QAction *action )
10081008
if ( index < 0 )
10091009
return;
10101010

1011-
saveStyleAs( (StyleType) index );
1011+
saveStyleAs(( StyleType ) index );
10121012
}
10131013

10141014
void QgsVectorLayerProperties::saveStyleAs( StyleType styleType )
@@ -1029,7 +1029,7 @@ void QgsVectorLayerProperties::saveStyleAs( StyleType styleType )
10291029
}
10301030

10311031
QString myOutputFileName = QFileDialog::getSaveFileName( this, tr( "Save layer properties as style file" ),
1032-
myLastUsedDir, format );
1032+
myLastUsedDir, format );
10331033
if ( myOutputFileName.isNull() ) //dialog canceled
10341034
{
10351035
return;

src/app/qgsvectorlayerproperties.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ class QgsVectorLayerProperties : public QDialog, private Ui::QgsVectorLayerPrope
147147
private slots:
148148

149149
/** save the style based on selected format from the menu */
150-
void saveStyleAsMenuTriggered( QAction * );
150+
void saveStyleAsMenuTriggered( QAction * );
151151

152152
protected:
153153

src/core/gps/qgsqtlocationconnection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ void QgsQtLocationConnection::startGPS()
158158
if ( locationDataSource )
159159
{
160160
locationDataSource->setPreferredPositioningMethods( QGeoPositionInfoSource::SatellitePositioningMethods ); //QGeoPositionInfoSource::AllPositioningMethods
161-
locationDataSource->setUpdateInterval(1000);
161+
locationDataSource->setUpdateInterval( 1000 );
162162
// Whenever the location data source signals that the current
163163
// position is updated, the positionUpdated function is called.
164164
QObject::connect( locationDataSource,

src/core/qgsrasterdataprovider.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -451,21 +451,21 @@ class CORE_EXPORT QgsRasterDataProvider : public QgsDataProvider, public QgsRast
451451
/**Writes into the provider datasource*/
452452
virtual bool write( void* data, int band, int width, int height, int xOffset, int yOffset )
453453
{
454-
Q_UNUSED( data );
455-
Q_UNUSED( band );
456-
Q_UNUSED( width );
457-
Q_UNUSED( height );
458-
Q_UNUSED( xOffset );
459-
Q_UNUSED( yOffset );
460-
return false;
454+
Q_UNUSED( data );
455+
Q_UNUSED( band );
456+
Q_UNUSED( width );
457+
Q_UNUSED( height );
458+
Q_UNUSED( xOffset );
459+
Q_UNUSED( yOffset );
460+
return false;
461461
}
462462

463463
/** Creates a new dataset with mDataSourceURI
464464
@return true in case of success*/
465465
virtual bool create( const QString& format, int nBands,
466-
QgsRasterDataProvider::DataType type,
466+
QgsRasterDataProvider::DataType type,
467467
int width, int height, double* geoTransform,
468-
const QgsCoordinateReferenceSystem& crs,
468+
const QgsCoordinateReferenceSystem& crs,
469469
QStringList createOptions = QStringList() /*e.v. color table*/ )
470470
{
471471
Q_UNUSED( format );

src/core/qgsrasterprojector.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ QgsRasterProjector::QgsRasterProjector(
3434
, mDestExtent( theDestExtent )
3535
, mExtent( theExtent )
3636
, mDestRows( theDestRows ), mDestCols( theDestCols )
37-
, mMaxSrcXRes( theMaxSrcXRes ), mMaxSrcYRes( theMaxSrcYRes )
3837
, pHelperTop( 0 ), pHelperBottom( 0 )
38+
, mMaxSrcXRes( theMaxSrcXRes ), mMaxSrcYRes( theMaxSrcYRes )
3939
{
4040
QgsDebugMsg( "Entered" );
4141
QgsDebugMsg( "theDestExtent = " + theDestExtent.toString() );
@@ -53,8 +53,8 @@ QgsRasterProjector::QgsRasterProjector(
5353
, mDestCRS( theDestCRS )
5454
, mCoordinateTransform( theDestCRS, theSrcCRS )
5555
, mExtent( theExtent )
56-
, mMaxSrcXRes( theMaxSrcXRes ), mMaxSrcYRes( theMaxSrcYRes )
5756
, pHelperTop( 0 ), pHelperBottom( 0 )
57+
, mMaxSrcXRes( theMaxSrcXRes ), mMaxSrcYRes( theMaxSrcYRes )
5858
{
5959
QgsDebugMsg( "Entered" );
6060
}

0 commit comments

Comments
 (0)