Skip to content

Commit a6598d4

Browse files
committed
Fixed build with -Wextra-semi
1 parent 32b0e02 commit a6598d4

10 files changed

+18
-12
lines changed

src/DockWidgetBase.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class DOCKS_EXPORT DockWidgetBase : public QWidget
8181
/// Run "kddockwidgets_mdi_with_docking_example -n" to see it in action
8282
};
8383
Q_DECLARE_FLAGS(Options, Option)
84-
Q_ENUM(Options);
84+
Q_ENUM(Options)
8585

8686
/// @brief Options which will affect LayoutSaver save/restore
8787
enum class LayoutSaverOption {

src/KDDockWidgets.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ enum class FloatingWindowFlag {
302302
UseQtWindow = 256,
303303
UseQtTool = 512,
304304
};
305-
Q_DECLARE_FLAGS(FloatingWindowFlags, FloatingWindowFlag);
305+
Q_DECLARE_FLAGS(FloatingWindowFlags, FloatingWindowFlag)
306306

307307
///@internal
308308
inline QString locationStr(Location loc)

src/private/DragController_p.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ class State : public QObject
4545
bool isCurrentState() const;
4646

4747
virtual void onEntry() = 0;
48-
virtual void onExit() {};
48+
virtual void onExit()
49+
{
50+
}
4951

5052
private:
5153
MinimalStateMachine *const m_machine;

src/private/DropIndicatorOverlayInterface_p.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ class DOCKS_EXPORT DropIndicatorOverlayInterface : public QWidgetAdapter
6767
protected:
6868
virtual DropLocation hover_impl(QPoint globalPos) = 0;
6969
virtual void onHoveredFrameChanged(Frame *);
70-
virtual void updateVisibility() {};
70+
virtual void updateVisibility()
71+
{
72+
}
7173

7274
Frame *m_hoveredFrame = nullptr;
7375
DropArea *const m_dropArea;

src/private/TabWidget_p.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,9 @@ class DOCKS_EXPORT TabWidget : public Draggable
187187
// Q_SIGNALS: // Not a OQbject
188188
virtual void currentTabChanged(int index) = 0;
189189
virtual void currentDockWidgetChanged(KDDockWidgets::DockWidgetBase *) = 0;
190-
virtual void countChanged() {};
190+
virtual void countChanged()
191+
{
192+
}
191193

192194
protected:
193195
void onTabInserted();

src/private/Utils_p.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,6 @@ inline T *lastParentOfType(const QObject *child)
411411
return result;
412412
}
413413

414-
};
414+
}
415415

416416
#endif

src/private/WidgetResizeHandler_p.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class DOCKS_EXPORT WidgetResizeHandler : public QObject
4545
Feature_All = Feature_NativeShadow | Feature_NativeResize | Feature_NativeDrag
4646
| Feature_NativeMaximize
4747
};
48-
Q_DECLARE_FLAGS(Features, Feature);
48+
Q_DECLARE_FLAGS(Features, Feature)
4949

5050
struct NativeFeatures
5151
{

src/private/indicators/NullIndicators_p.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class DOCKS_EXPORT NullIndicators : public DropIndicatorOverlayInterface
3030
DropLocation hover_impl(QPoint) override
3131
{
3232
return {};
33-
};
33+
}
3434

3535
DropLocation dropLocationForPos(QPoint) const
3636
{

src/private/multisplitter/MultiSplitterConfig.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class DOCKS_EXPORT_FOR_UNIT_TESTS Config
2929
None = 0,
3030
LazyResize = 1
3131
};
32-
Q_DECLARE_FLAGS(Flags, Flag);
32+
Q_DECLARE_FLAGS(Flags, Flag)
3333

3434
///@brief returns the singleton Config instance
3535
static Config &self();
@@ -72,7 +72,7 @@ class DOCKS_EXPORT_FOR_UNIT_TESTS Config
7272
SeparatorFactoryFunc m_separatorFactoryFunc = nullptr;
7373
Flags m_flags = Flag::None;
7474

75-
Q_DISABLE_COPY(Config);
75+
Q_DISABLE_COPY(Config)
7676
};
7777

7878
}

tests/utils.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@ DockWidgetBase *KDDockWidgets::Tests::createDockWidget(const QString &name, QWid
9494
} else {
9595
return dock;
9696
}
97-
};
97+
}
9898

9999
DockWidgetBase *KDDockWidgets::Tests::createDockWidget(const QString &name, QColor color)
100100
{
101101
return createDockWidget(name, new MyWidget(name, color));
102-
};
102+
}
103103

104104
static QWidgetOrQuick *createGuestWidget(int i)
105105
{

0 commit comments

Comments
 (0)