Skip to content

Commit 4f75095

Browse files
committed
Remove some unnecessary trailing ;
(Gets rid of annoying squiggle warnings from Qt Creator!)
1 parent c968031 commit 4f75095

35 files changed

+57
-58
lines changed

src/app/qgsattributeactiondialog.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class APP_EXPORT QgsAttributeActionDialog: public QWidget, private Ui::QgsAttrib
3939
const QgsFields& fields,
4040
QWidget* parent = 0 );
4141

42-
~QgsAttributeActionDialog() {};
42+
~QgsAttributeActionDialog() {}
4343

4444
void init();
4545

src/app/qgstip.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ class APP_EXPORT QgsTip
3131
{
3232
public:
3333
/** Constructor */
34-
QgsTip() {};
34+
QgsTip() {}
3535
/** Destructor */
36-
~QgsTip() {};
36+
~QgsTip() {}
3737
//
3838
// Accessors
3939
//

src/core/composer/qgscomposerpicture.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ class CORE_EXPORT QgsComposerPicture: public QgsComposerItem
279279
* @note added in 2.3
280280
* @deprecated no longer required
281281
*/
282-
Q_DECL_DEPRECATED void updatePictureExpression() {};
282+
Q_DECL_DEPRECATED void updatePictureExpression() {}
283283

284284
/** Forces a recalculation of the picture's frame size
285285
* @note added in 2.3

src/core/composer/qgscomposershape.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class CORE_EXPORT QgsComposerShape: public QgsComposerItem
6666
/** Sets radius for rounded rectangle corners. Added in v2.1 */
6767
void setCornerRadius( double radius );
6868
/** Returns the radius for rounded rectangle corners*/
69-
double cornerRadius() const { return mCornerRadius; };
69+
double cornerRadius() const { return mCornerRadius; }
7070

7171
/** Sets the QgsFillSymbolV2 used to draw the shape. Must also call setUseSymbolV2( true ) to
7272
* enable drawing with a symbol.

src/core/composer/qgscomposition.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ class CORE_EXPORT QgsComposition : public QGraphicsScene
560560
* after reading all the items from xml file
561561
* @deprecated use refreshZList instead
562562
*/
563-
Q_DECL_DEPRECATED void sortZList() {};
563+
Q_DECL_DEPRECATED void sortZList() {}
564564

565565
/** Rebuilds the z order list by adding any item which are present in the composition
566566
* but missing from the z order list.

src/core/geometry/qgsgeometry.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ class CORE_EXPORT QgsGeometry
777777
QgsGeometry* convertToPolygon( bool destMultipart ) const;
778778
}; // class QgsGeometry
779779

780-
Q_DECLARE_METATYPE( QgsGeometry );
780+
Q_DECLARE_METATYPE( QgsGeometry )
781781

782782
/** Writes the geometry to stream out. QGIS version compatibility is not guaranteed. */
783783
CORE_EXPORT QDataStream& operator<<( QDataStream& out, const QgsGeometry& geometry );

src/core/qgscsexception.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
class CORE_EXPORT QgsCsException : public QgsException
2525
{
2626
public:
27-
QgsCsException( QString const &what ) : QgsException( what ) {};
27+
QgsCsException( QString const &what ) : QgsException( what ) {}
2828

2929
};
3030
#endif //QGCSEXCEPTION_H

src/core/qgsexpression.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,7 @@ class CORE_EXPORT QgsExpression
10221022
};
10231023
Q_NOWARN_DEPRECATED_POP
10241024

1025-
Q_DECLARE_METATYPE( QgsExpression::Interval );
1026-
Q_DECLARE_METATYPE( QgsExpression::Node* );
1025+
Q_DECLARE_METATYPE( QgsExpression::Interval )
1026+
Q_DECLARE_METATYPE( QgsExpression::Node* )
10271027

10281028
#endif // QGSEXPRESSION_H

src/core/qgsfeaturestore.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ class CORE_EXPORT QgsFeatureStore
8282

8383
typedef QList<QgsFeatureStore> QgsFeatureStoreList;
8484

85-
Q_DECLARE_METATYPE( QgsFeatureStore );
85+
Q_DECLARE_METATYPE( QgsFeatureStore )
8686

87-
Q_DECLARE_METATYPE( QgsFeatureStoreList );
87+
Q_DECLARE_METATYPE( QgsFeatureStoreList )
8888

8989
#endif

src/core/qgsfield.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class CORE_EXPORT QgsField
158158

159159
}; // class QgsField
160160

161-
Q_DECLARE_METATYPE( QgsField );
161+
Q_DECLARE_METATYPE( QgsField )
162162

163163
/** Writes the field to stream out. QGIS version compatibility is not guaranteed. */
164164
CORE_EXPORT QDataStream& operator<<( QDataStream& out, const QgsField& field );
@@ -280,7 +280,7 @@ class CORE_EXPORT QgsFields
280280

281281
};
282282

283-
Q_DECLARE_METATYPE( QgsFields );
283+
Q_DECLARE_METATYPE( QgsFields )
284284

285285
/** Writes the fields to stream out. QGIS version compatibility is not guaranteed. */
286286
CORE_EXPORT QDataStream& operator<<( QDataStream& out, const QgsFields& fields );

src/core/qgsprojectfiletransform.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class CORE_EXPORT QgsProjectFileTransform
7777
// Transformer functions below. Declare functions here,
7878
// define them in qgsprojectfiletransform.cpp and add them
7979
// to the transformArray with proper version number
80-
void transformNull() {}; // Do absolutely nothing
80+
void transformNull() {} // Do absolutely nothing
8181
void transform081to090();
8282
void transform091to0100();
8383
void transform0100to0110();

src/core/raster/qgsrasterinterface.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
*/
3535
class CORE_EXPORT QgsRasterInterface
3636
{
37-
Q_DECLARE_TR_FUNCTIONS( QgsRasterInterface );
37+
Q_DECLARE_TR_FUNCTIONS( QgsRasterInterface )
3838

3939
public:
4040
//! If you add to this, please also add to capabilitiesString()
@@ -75,7 +75,7 @@ class CORE_EXPORT QgsRasterInterface
7575

7676
/** Returns source data type for the band specified by number,
7777
* source data type may be shorter than dataType */
78-
virtual QGis::DataType srcDataType( int bandNo ) const { if ( mInput ) return mInput->srcDataType( bandNo ); else return QGis::UnknownDataType; };
78+
virtual QGis::DataType srcDataType( int bandNo ) const { if ( mInput ) return mInput->srcDataType( bandNo ); else return QGis::UnknownDataType; }
7979

8080
/**
8181
* Get the extent of the interface.

src/gui/qgsmapcanvas.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ class GUI_EXPORT QgsMapCanvas : public QGraphicsView
454454
//! Whether to suppress rendering or not
455455
void setRenderFlag( bool theFlag );
456456
//! State of render suppression flag
457-
bool renderFlag() {return mRenderFlag;};
457+
bool renderFlag() {return mRenderFlag;}
458458

459459
/** A simple helper method to find out if on the fly projections are enabled or not */
460460
bool hasCrsTransformEnabled();

src/plugins/dxf2shp_converter/dxflib/src/dl_writer.h

-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ class DXFLIB_EXPORT DL_Writer {
6767
}
6868

6969
virtual ~DL_Writer() {}
70-
;
7170

7271
/** Generic section for section 'name'.
7372
*

src/plugins/georeferencer/qgsgeorefdatapoint.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class QgsGeorefDataPoint : public QObject
3939
QgsPoint mapCoords() const { return mMapCoords; }
4040
void setMapCoords( const QgsPoint &p );
4141

42-
bool isEnabled() const { return mEnabled; };
42+
bool isEnabled() const { return mEnabled; }
4343
void setEnabled( bool enabled );
4444

4545
int id() const { return mId; }

src/plugins/georeferencer/qgsimagewarper.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class QWidget;
2929

3030
class QgsImageWarper
3131
{
32-
Q_DECLARE_TR_FUNCTIONS( QgsImageWarper );
32+
Q_DECLARE_TR_FUNCTIONS( QgsImageWarper )
3333

3434
public:
3535
explicit QgsImageWarper( QWidget *theParent );

src/plugins/roadgraph/settings.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class RgSettings
3232
{
3333
public:
3434
//! Destructor
35-
virtual ~RgSettings() { };
35+
virtual ~RgSettings() { }
3636

3737
/**
3838
* write settings to the poject file

src/plugins/spatialquery/qgsmngprogressbar.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class MngProgressBar
3535
/**
3636
* \brief Destructor
3737
*/
38-
~MngProgressBar() { mPb->reset(); };
38+
~MngProgressBar() { mPb->reset(); }
3939

4040
/**
4141
* \brief Sets the progress bar's minimum and maximum values to minimum and maximum respectively

src/providers/gpx/gpsdata.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
class QgsGPSObject
4343
{
4444
public:
45-
virtual ~QgsGPSObject() {};
45+
virtual ~QgsGPSObject() {}
4646
QString xmlify( const QString& str );
4747
virtual void writeXML( QTextStream& stream );
4848
QString name, cmt, desc, src, url, urlname;

src/providers/mssql/qgsmssqlgeometryparser.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ class QgsMssqlGeometryParser
6464
public:
6565
QgsMssqlGeometryParser();
6666
unsigned char* ParseSqlGeometry( unsigned char* pszInput, int nLen );
67-
int GetSRSId() { return nSRSId; };
68-
int GetWkbLen() { return nWkbLen; };
67+
int GetSRSId() { return nSRSId; }
68+
int GetWkbLen() { return nWkbLen; }
6969
void DumpMemoryToLog( const char* pszMsg, unsigned char* pszInput, int nLen );
7070
/* sql geo type */
7171
bool IsGeography;

src/providers/postgres/qgspostgresconnpool.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class QgsPostgresConnPool : public QgsConnectionPool<QgsPostgresConn*, QgsPostgr
7171
static QgsPostgresConnPool* instance();
7272

7373
protected:
74-
Q_DISABLE_COPY( QgsPostgresConnPool );
74+
Q_DISABLE_COPY( QgsPostgresConnPool )
7575

7676
private:
7777
QgsPostgresConnPool();

tests/src/analysis/testqgsrastercalculator.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Email : nyall dot dawson at gmail dot com
2121
#include "qgsapplication.h"
2222
#include "qgsmaplayerregistry.h"
2323

24-
Q_DECLARE_METATYPE( QgsRasterCalcNode::Operator );
24+
Q_DECLARE_METATYPE( QgsRasterCalcNode::Operator )
2525

2626

2727
class TestQgsRasterCalculator : public QObject

tests/src/core/regression1141.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ class Regression1141: public QObject
5656
private slots:
5757
void initTestCase();// will be called before the first testfunction is executed.
5858
void cleanupTestCase();// will be called after the last testfunction was executed.
59-
void init() {};// will be called before each testfunction is executed.
60-
void cleanup() {};// will be called after every testfunction.
59+
void init() {} // will be called before each testfunction is executed.
60+
void cleanup() {} // will be called after every testfunction.
6161

6262
/** This method tests that we can create a shpfile with diacriticals in its name
6363
* and with fields that have diacriticals in their names*/

tests/src/core/testcontrastenhancements.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ class TestContrastEnhancements: public QObject
3434
private slots:
3535
void initTestCase();// will be called before the first testfunction is executed.
3636
void cleanupTestCase();// will be called after the last testfunction was executed.
37-
void init() {};// will be called before each testfunction is executed.
38-
void cleanup() {};// will be called after every testfunction.
37+
void init() {} // will be called before each testfunction is executed.
38+
void cleanup() {} // will be called after every testfunction.
3939

4040
void clipMinMaxEnhancementTest();
4141
void linearMinMaxEnhancementWithClipTest();

tests/src/core/testqgsapplication.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ void TestQgsApplication::initTestCase()
4343
QgsApplication::init();
4444
QgsApplication::initQgis();
4545
qDebug( "%s", QgsApplication::showSettings().toUtf8().constData() );
46-
};
46+
}
4747

4848
void TestQgsApplication::cleanupTestCase()
4949
{
@@ -56,7 +56,7 @@ void TestQgsApplication::checkPaths()
5656
qDebug( "Checking authors file exists:" );
5757
qDebug( "%s", myPath.toLocal8Bit().constData() );
5858
QVERIFY( !myPath.isEmpty() );
59-
};
59+
}
6060

6161
void TestQgsApplication::checkGdalSkip()
6262
{

tests/src/core/testqgsclipper.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ void TestQgsClipper::basic()
7676
clipRectInner = clipRect;
7777
clipRectInner.scale( 0.999 );
7878
QVERIFY( ! checkBoundingBox( polygon, clipRectInner ) );
79-
};
79+
}
8080

8181
bool TestQgsClipper::checkBoundingBox( const QPolygonF& polygon, const QgsRectangle& clipRect )
8282
{

tests/src/core/testqgsdistancearea.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ void TestQgsDistanceArea::basic()
9696
daA.setEllipsoid( 6378135.0, 6378135.0 - ( 6378135.0 / 298.26 ) );
9797
resultA = daA.measureLine( p1, p2 );
9898
QCOMPARE( resultA, resultB );
99-
};
99+
}
100100

101101
void TestQgsDistanceArea::test_distances()
102102
{
@@ -144,7 +144,7 @@ void TestQgsDistanceArea::test_distances()
144144
}
145145
}
146146

147-
};
147+
}
148148

149149
void TestQgsDistanceArea::unit_conversions()
150150
{

tests/src/core/testqgsgradients.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ class TestQgsGradients : public QObject
5454
private slots:
5555
void initTestCase();// will be called before the first testfunction is executed.
5656
void cleanupTestCase();// will be called after the last testfunction was executed.
57-
void init() {};// will be called before each testfunction is executed.
58-
void cleanup() {};// will be called after every testfunction.
57+
void init() {} // will be called before each testfunction is executed.
58+
void cleanup() {} // will be called after every testfunction.
5959

6060
void gradientSymbol();
6161
void gradientSymbolColors();

tests/src/core/testqgsmaplayer.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ class TestQgsMapLayer : public QObject
5555
private slots:
5656
void initTestCase();// will be called before the first testfunction is executed.
5757
void cleanupTestCase();// will be called after the last testfunction was executed.
58-
void init() {};// will be called before each testfunction is executed.
59-
void cleanup() {};// will be called after every testfunction.
58+
void init() {} // will be called before each testfunction is executed.
59+
void cleanup() {} // will be called after every testfunction.
6060

6161
void isValid();
6262

tests/src/core/testqgsrectangle.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void TestQgsRectangle::manipulate()
5151
rect3.unionRect( rect2 );
5252
// Check union
5353
QVERIFY( rect3 == QgsRectangle( 1.0, 1.0, 7.0, 5.0 ) );
54-
};
54+
}
5555

5656
void TestQgsRectangle::regression6194()
5757
{
@@ -83,7 +83,7 @@ void TestQgsRectangle::regression6194()
8383
QVERIFY( rect2.xMaximum() == rect1.xMaximum() );
8484
QVERIFY( rect2.yMaximum() == rect1.yMaximum() );
8585
QVERIFY( rect1 == rect2 );
86-
};
86+
}
8787

8888
QTEST_MAIN( TestQgsRectangle )
8989
#include "testqgsrectangle.moc"

tests/src/core/testqgsshapeburst.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ class TestQgsShapeburst : public QObject
5353
private slots:
5454
void initTestCase();// will be called before the first testfunction is executed.
5555
void cleanupTestCase();// will be called after the last testfunction was executed.
56-
void init() {};// will be called before each testfunction is executed.
57-
void cleanup() {};// will be called after every testfunction.
56+
void init() {} // will be called before each testfunction is executed.
57+
void cleanup() {} // will be called after every testfunction.
5858

5959
void shapeburstSymbol();
6060
void shapeburstSymbolColors();

tests/src/core/testqgsvectordataprovider.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include <qgsvectordataprovider.h>
2323
#include <qgsvectorlayer.h>
2424

25-
Q_DECLARE_METATYPE( QgsFeatureRequest );
25+
Q_DECLARE_METATYPE( QgsFeatureRequest )
2626

2727
class TestQgsVectorDataProvider : public QObject
2828
{

tests/src/core/testziplayer.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ class TestZipLayer: public QObject
5858
// init / cleanup
5959
void initTestCase();// will be called before the first testfunction is executed.
6060
void cleanupTestCase();// will be called after the last testfunction was executed.
61-
void init() {};// will be called before each testfunction is executed.
62-
void cleanup() {};// will be called after every testfunction.
61+
void init() {} // will be called before each testfunction is executed.
62+
void cleanup() {} // will be called after every testfunction.
6363

6464
// tests
6565
// test for .zip and .gz files using all options

tests/src/gui/testprojectionissues.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -83,31 +83,31 @@ void TestProjectionIssues::initTestCase()
8383
mMapCanvas->setDestinationCrs( destCRS );
8484
mMapCanvas->setCrsTransformEnabled( true );
8585

86-
};
86+
}
8787

8888
void TestProjectionIssues::cleanupTestCase()
8989
{
9090
delete mMapCanvas;
9191

9292
QgsApplication::exitQgis();
93-
};
93+
}
9494

9595
void TestProjectionIssues::init()
9696
{
9797

98-
};
98+
}
9999

100100
void TestProjectionIssues::cleanup()
101101
{
102102

103-
};
103+
}
104104

105105
void TestProjectionIssues::issue5895()
106106
{
107107
QgsRectangle largeExtent( -610861, 5101721, 2523921, 6795055 );
108108
mMapCanvas->setExtent( largeExtent );
109109
mMapCanvas->zoomByFactor( 2.0 ); // Zoom out. This should exceed the transform limits.
110-
};
110+
}
111111

112112
QTEST_MAIN( TestProjectionIssues )
113113
#include "testprojectionissues.moc"

0 commit comments

Comments
 (0)