diff options
| author | 2016-12-11 07:22:10 -0500 | |
|---|---|---|
| committer | 2016-12-11 14:18:06 +0000 | |
| commit | d0e4d1182bd1bb4811662d47cde091826ca38600 (patch) | |
| tree | 638f8db020f46c89881dfea60ce15ec060921ffb /src | |
| parent | citra-qt: Add missing #pragma once directives (diff) | |
| download | yuzu-d0e4d1182bd1bb4811662d47cde091826ca38600.tar.gz yuzu-d0e4d1182bd1bb4811662d47cde091826ca38600.tar.xz yuzu-d0e4d1182bd1bb4811662d47cde091826ca38600.zip | |
citra-qt: Make constructors explicit where applicable
Diffstat (limited to 'src')
| -rw-r--r-- | src/citra_qt/bootmanager.h | 2 | ||||
| -rw-r--r-- | src/citra_qt/debugger/callstack.h | 2 | ||||
| -rw-r--r-- | src/citra_qt/debugger/disassembler.h | 2 | ||||
| -rw-r--r-- | src/citra_qt/debugger/graphics.h | 2 | ||||
| -rw-r--r-- | src/citra_qt/debugger/graphics_breakpoints.h | 4 | ||||
| -rw-r--r-- | src/citra_qt/debugger/graphics_cmdlists.h | 4 | ||||
| -rw-r--r-- | src/citra_qt/debugger/graphics_surface.h | 7 | ||||
| -rw-r--r-- | src/citra_qt/debugger/graphics_tracing.h | 4 | ||||
| -rw-r--r-- | src/citra_qt/debugger/graphics_vertex_shader.h | 2 | ||||
| -rw-r--r-- | src/citra_qt/debugger/profiler.h | 6 | ||||
| -rw-r--r-- | src/citra_qt/debugger/ramview.h | 2 | ||||
| -rw-r--r-- | src/citra_qt/debugger/registers.h | 2 | ||||
| -rw-r--r-- | src/citra_qt/debugger/wait_tree.h | 24 | ||||
| -rw-r--r-- | src/citra_qt/hotkeys.h | 2 | ||||
| -rw-r--r-- | src/citra_qt/util/spinbox.h | 2 |
15 files changed, 35 insertions, 32 deletions
diff --git a/src/citra_qt/bootmanager.h b/src/citra_qt/bootmanager.h index 92da1f5f3..af52f369b 100644 --- a/src/citra_qt/bootmanager.h +++ b/src/citra_qt/bootmanager.h | |||
| @@ -23,7 +23,7 @@ class EmuThread : public QThread { | |||
| 23 | Q_OBJECT | 23 | Q_OBJECT |
| 24 | 24 | ||
| 25 | public: | 25 | public: |
| 26 | EmuThread(GRenderWindow* render_window); | 26 | explicit EmuThread(GRenderWindow* render_window); |
| 27 | 27 | ||
| 28 | /** | 28 | /** |
| 29 | * Start emulation (on new thread) | 29 | * Start emulation (on new thread) |
diff --git a/src/citra_qt/debugger/callstack.h b/src/citra_qt/debugger/callstack.h index b08a8357e..f04ab9c7e 100644 --- a/src/citra_qt/debugger/callstack.h +++ b/src/citra_qt/debugger/callstack.h | |||
| @@ -13,7 +13,7 @@ class CallstackWidget : public QDockWidget { | |||
| 13 | Q_OBJECT | 13 | Q_OBJECT |
| 14 | 14 | ||
| 15 | public: | 15 | public: |
| 16 | CallstackWidget(QWidget* parent = nullptr); | 16 | explicit CallstackWidget(QWidget* parent = nullptr); |
| 17 | 17 | ||
| 18 | public slots: | 18 | public slots: |
| 19 | void OnDebugModeEntered(); | 19 | void OnDebugModeEntered(); |
diff --git a/src/citra_qt/debugger/disassembler.h b/src/citra_qt/debugger/disassembler.h index 2ca6c2bd4..895f6ac89 100644 --- a/src/citra_qt/debugger/disassembler.h +++ b/src/citra_qt/debugger/disassembler.h | |||
| @@ -17,7 +17,7 @@ class DisassemblerModel : public QAbstractListModel { | |||
| 17 | Q_OBJECT | 17 | Q_OBJECT |
| 18 | 18 | ||
| 19 | public: | 19 | public: |
| 20 | DisassemblerModel(QObject* parent); | 20 | explicit DisassemblerModel(QObject* parent); |
| 21 | 21 | ||
| 22 | int columnCount(const QModelIndex& parent = QModelIndex()) const override; | 22 | int columnCount(const QModelIndex& parent = QModelIndex()) const override; |
| 23 | int rowCount(const QModelIndex& parent = QModelIndex()) const override; | 23 | int rowCount(const QModelIndex& parent = QModelIndex()) const override; |
diff --git a/src/citra_qt/debugger/graphics.h b/src/citra_qt/debugger/graphics.h index bedf3e596..8837fb792 100644 --- a/src/citra_qt/debugger/graphics.h +++ b/src/citra_qt/debugger/graphics.h | |||
| @@ -13,7 +13,7 @@ class GPUCommandStreamItemModel : public QAbstractListModel, | |||
| 13 | Q_OBJECT | 13 | Q_OBJECT |
| 14 | 14 | ||
| 15 | public: | 15 | public: |
| 16 | GPUCommandStreamItemModel(QObject* parent); | 16 | explicit GPUCommandStreamItemModel(QObject* parent); |
| 17 | 17 | ||
| 18 | int rowCount(const QModelIndex& parent = QModelIndex()) const override; | 18 | int rowCount(const QModelIndex& parent = QModelIndex()) const override; |
| 19 | QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override; | 19 | QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override; |
diff --git a/src/citra_qt/debugger/graphics_breakpoints.h b/src/citra_qt/debugger/graphics_breakpoints.h index 5fc40c916..bec72a2db 100644 --- a/src/citra_qt/debugger/graphics_breakpoints.h +++ b/src/citra_qt/debugger/graphics_breakpoints.h | |||
| @@ -20,8 +20,8 @@ class GraphicsBreakPointsWidget : public QDockWidget, Pica::DebugContext::BreakP | |||
| 20 | using Event = Pica::DebugContext::Event; | 20 | using Event = Pica::DebugContext::Event; |
| 21 | 21 | ||
| 22 | public: | 22 | public: |
| 23 | GraphicsBreakPointsWidget(std::shared_ptr<Pica::DebugContext> debug_context, | 23 | explicit GraphicsBreakPointsWidget(std::shared_ptr<Pica::DebugContext> debug_context, |
| 24 | QWidget* parent = nullptr); | 24 | QWidget* parent = nullptr); |
| 25 | 25 | ||
| 26 | void OnPicaBreakPointHit(Pica::DebugContext::Event event, void* data) override; | 26 | void OnPicaBreakPointHit(Pica::DebugContext::Event event, void* data) override; |
| 27 | void OnPicaResume() override; | 27 | void OnPicaResume() override; |
diff --git a/src/citra_qt/debugger/graphics_cmdlists.h b/src/citra_qt/debugger/graphics_cmdlists.h index fa2b9122b..8f40b94c5 100644 --- a/src/citra_qt/debugger/graphics_cmdlists.h +++ b/src/citra_qt/debugger/graphics_cmdlists.h | |||
| @@ -20,7 +20,7 @@ public: | |||
| 20 | CommandIdRole = Qt::UserRole, | 20 | CommandIdRole = Qt::UserRole, |
| 21 | }; | 21 | }; |
| 22 | 22 | ||
| 23 | GPUCommandListModel(QObject* parent); | 23 | explicit GPUCommandListModel(QObject* parent); |
| 24 | 24 | ||
| 25 | int columnCount(const QModelIndex& parent = QModelIndex()) const override; | 25 | int columnCount(const QModelIndex& parent = QModelIndex()) const override; |
| 26 | int rowCount(const QModelIndex& parent = QModelIndex()) const override; | 26 | int rowCount(const QModelIndex& parent = QModelIndex()) const override; |
| @@ -39,7 +39,7 @@ class GPUCommandListWidget : public QDockWidget { | |||
| 39 | Q_OBJECT | 39 | Q_OBJECT |
| 40 | 40 | ||
| 41 | public: | 41 | public: |
| 42 | GPUCommandListWidget(QWidget* parent = nullptr); | 42 | explicit GPUCommandListWidget(QWidget* parent = nullptr); |
| 43 | 43 | ||
| 44 | public slots: | 44 | public slots: |
| 45 | void OnToggleTracing(); | 45 | void OnToggleTracing(); |
diff --git a/src/citra_qt/debugger/graphics_surface.h b/src/citra_qt/debugger/graphics_surface.h index 21e6b5b8b..19ffb55fb 100644 --- a/src/citra_qt/debugger/graphics_surface.h +++ b/src/citra_qt/debugger/graphics_surface.h | |||
| @@ -18,7 +18,8 @@ class SurfacePicture : public QLabel { | |||
| 18 | Q_OBJECT | 18 | Q_OBJECT |
| 19 | 19 | ||
| 20 | public: | 20 | public: |
| 21 | SurfacePicture(QWidget* parent = 0, GraphicsSurfaceWidget* surface_widget = nullptr); | 21 | explicit SurfacePicture(QWidget* parent = nullptr, |
| 22 | GraphicsSurfaceWidget* surface_widget = nullptr); | ||
| 22 | ~SurfacePicture(); | 23 | ~SurfacePicture(); |
| 23 | 24 | ||
| 24 | protected slots: | 25 | protected slots: |
| @@ -71,8 +72,8 @@ class GraphicsSurfaceWidget : public BreakPointObserverDock { | |||
| 71 | static unsigned int NibblesPerPixel(Format format); | 72 | static unsigned int NibblesPerPixel(Format format); |
| 72 | 73 | ||
| 73 | public: | 74 | public: |
| 74 | GraphicsSurfaceWidget(std::shared_ptr<Pica::DebugContext> debug_context, | 75 | explicit GraphicsSurfaceWidget(std::shared_ptr<Pica::DebugContext> debug_context, |
| 75 | QWidget* parent = nullptr); | 76 | QWidget* parent = nullptr); |
| 76 | void Pick(int x, int y); | 77 | void Pick(int x, int y); |
| 77 | 78 | ||
| 78 | public slots: | 79 | public slots: |
diff --git a/src/citra_qt/debugger/graphics_tracing.h b/src/citra_qt/debugger/graphics_tracing.h index e04a3dac3..20acc91e7 100644 --- a/src/citra_qt/debugger/graphics_tracing.h +++ b/src/citra_qt/debugger/graphics_tracing.h | |||
| @@ -12,8 +12,8 @@ class GraphicsTracingWidget : public BreakPointObserverDock { | |||
| 12 | Q_OBJECT | 12 | Q_OBJECT |
| 13 | 13 | ||
| 14 | public: | 14 | public: |
| 15 | GraphicsTracingWidget(std::shared_ptr<Pica::DebugContext> debug_context, | 15 | explicit GraphicsTracingWidget(std::shared_ptr<Pica::DebugContext> debug_context, |
| 16 | QWidget* parent = nullptr); | 16 | QWidget* parent = nullptr); |
| 17 | 17 | ||
| 18 | private slots: | 18 | private slots: |
| 19 | void StartRecording(); | 19 | void StartRecording(); |
diff --git a/src/citra_qt/debugger/graphics_vertex_shader.h b/src/citra_qt/debugger/graphics_vertex_shader.h index ec42f24bb..6e62fbb9b 100644 --- a/src/citra_qt/debugger/graphics_vertex_shader.h +++ b/src/citra_qt/debugger/graphics_vertex_shader.h | |||
| @@ -19,7 +19,7 @@ class GraphicsVertexShaderModel : public QAbstractTableModel { | |||
| 19 | Q_OBJECT | 19 | Q_OBJECT |
| 20 | 20 | ||
| 21 | public: | 21 | public: |
| 22 | GraphicsVertexShaderModel(GraphicsVertexShaderWidget* parent); | 22 | explicit GraphicsVertexShaderModel(GraphicsVertexShaderWidget* parent); |
| 23 | 23 | ||
| 24 | int columnCount(const QModelIndex& parent = QModelIndex()) const override; | 24 | int columnCount(const QModelIndex& parent = QModelIndex()) const override; |
| 25 | int rowCount(const QModelIndex& parent = QModelIndex()) const override; | 25 | int rowCount(const QModelIndex& parent = QModelIndex()) const override; |
diff --git a/src/citra_qt/debugger/profiler.h b/src/citra_qt/debugger/profiler.h index d8c6487aa..c8912fd5a 100644 --- a/src/citra_qt/debugger/profiler.h +++ b/src/citra_qt/debugger/profiler.h | |||
| @@ -15,7 +15,7 @@ class ProfilerModel : public QAbstractItemModel { | |||
| 15 | Q_OBJECT | 15 | Q_OBJECT |
| 16 | 16 | ||
| 17 | public: | 17 | public: |
| 18 | ProfilerModel(QObject* parent); | 18 | explicit ProfilerModel(QObject* parent); |
| 19 | 19 | ||
| 20 | QVariant headerData(int section, Qt::Orientation orientation, | 20 | QVariant headerData(int section, Qt::Orientation orientation, |
| 21 | int role = Qt::DisplayRole) const override; | 21 | int role = Qt::DisplayRole) const override; |
| @@ -37,7 +37,7 @@ class ProfilerWidget : public QDockWidget { | |||
| 37 | Q_OBJECT | 37 | Q_OBJECT |
| 38 | 38 | ||
| 39 | public: | 39 | public: |
| 40 | ProfilerWidget(QWidget* parent = nullptr); | 40 | explicit ProfilerWidget(QWidget* parent = nullptr); |
| 41 | 41 | ||
| 42 | private slots: | 42 | private slots: |
| 43 | void setProfilingInfoUpdateEnabled(bool enable); | 43 | void setProfilingInfoUpdateEnabled(bool enable); |
| @@ -53,7 +53,7 @@ class MicroProfileDialog : public QWidget { | |||
| 53 | Q_OBJECT | 53 | Q_OBJECT |
| 54 | 54 | ||
| 55 | public: | 55 | public: |
| 56 | MicroProfileDialog(QWidget* parent = nullptr); | 56 | explicit MicroProfileDialog(QWidget* parent = nullptr); |
| 57 | 57 | ||
| 58 | /// Returns a QAction that can be used to toggle visibility of this dialog. | 58 | /// Returns a QAction that can be used to toggle visibility of this dialog. |
| 59 | QAction* toggleViewAction(); | 59 | QAction* toggleViewAction(); |
diff --git a/src/citra_qt/debugger/ramview.h b/src/citra_qt/debugger/ramview.h index 993345eec..d01cea93b 100644 --- a/src/citra_qt/debugger/ramview.h +++ b/src/citra_qt/debugger/ramview.h | |||
| @@ -10,7 +10,7 @@ class GRamView : public QHexEdit { | |||
| 10 | Q_OBJECT | 10 | Q_OBJECT |
| 11 | 11 | ||
| 12 | public: | 12 | public: |
| 13 | GRamView(QWidget* parent = nullptr); | 13 | explicit GRamView(QWidget* parent = nullptr); |
| 14 | 14 | ||
| 15 | public slots: | 15 | public slots: |
| 16 | void OnCPUStepped(); | 16 | void OnCPUStepped(); |
diff --git a/src/citra_qt/debugger/registers.h b/src/citra_qt/debugger/registers.h index 8e349bd73..55bda5b59 100644 --- a/src/citra_qt/debugger/registers.h +++ b/src/citra_qt/debugger/registers.h | |||
| @@ -15,7 +15,7 @@ class RegistersWidget : public QDockWidget { | |||
| 15 | Q_OBJECT | 15 | Q_OBJECT |
| 16 | 16 | ||
| 17 | public: | 17 | public: |
| 18 | RegistersWidget(QWidget* parent = nullptr); | 18 | explicit RegistersWidget(QWidget* parent = nullptr); |
| 19 | 19 | ||
| 20 | public slots: | 20 | public slots: |
| 21 | void OnDebugModeEntered(); | 21 | void OnDebugModeEntered(); |
diff --git a/src/citra_qt/debugger/wait_tree.h b/src/citra_qt/debugger/wait_tree.h index 1af73b963..ee9708fc1 100644 --- a/src/citra_qt/debugger/wait_tree.h +++ b/src/citra_qt/debugger/wait_tree.h | |||
| @@ -51,7 +51,7 @@ private: | |||
| 51 | class WaitTreeText : public WaitTreeItem { | 51 | class WaitTreeText : public WaitTreeItem { |
| 52 | Q_OBJECT | 52 | Q_OBJECT |
| 53 | public: | 53 | public: |
| 54 | WaitTreeText(const QString& text); | 54 | explicit WaitTreeText(const QString& text); |
| 55 | QString GetText() const override; | 55 | QString GetText() const override; |
| 56 | 56 | ||
| 57 | private: | 57 | private: |
| @@ -67,7 +67,7 @@ public: | |||
| 67 | class WaitTreeWaitObject : public WaitTreeExpandableItem { | 67 | class WaitTreeWaitObject : public WaitTreeExpandableItem { |
| 68 | Q_OBJECT | 68 | Q_OBJECT |
| 69 | public: | 69 | public: |
| 70 | WaitTreeWaitObject(const Kernel::WaitObject& object); | 70 | explicit WaitTreeWaitObject(const Kernel::WaitObject& object); |
| 71 | static std::unique_ptr<WaitTreeWaitObject> make(const Kernel::WaitObject& object); | 71 | static std::unique_ptr<WaitTreeWaitObject> make(const Kernel::WaitObject& object); |
| 72 | QString GetText() const override; | 72 | QString GetText() const override; |
| 73 | std::vector<std::unique_ptr<WaitTreeItem>> GetChildren() const override; | 73 | std::vector<std::unique_ptr<WaitTreeItem>> GetChildren() const override; |
| @@ -94,7 +94,7 @@ private: | |||
| 94 | class WaitTreeThread : public WaitTreeWaitObject { | 94 | class WaitTreeThread : public WaitTreeWaitObject { |
| 95 | Q_OBJECT | 95 | Q_OBJECT |
| 96 | public: | 96 | public: |
| 97 | WaitTreeThread(const Kernel::Thread& thread); | 97 | explicit WaitTreeThread(const Kernel::Thread& thread); |
| 98 | QString GetText() const override; | 98 | QString GetText() const override; |
| 99 | QColor GetColor() const override; | 99 | QColor GetColor() const override; |
| 100 | std::vector<std::unique_ptr<WaitTreeItem>> GetChildren() const override; | 100 | std::vector<std::unique_ptr<WaitTreeItem>> GetChildren() const override; |
| @@ -103,35 +103,37 @@ public: | |||
| 103 | class WaitTreeEvent : public WaitTreeWaitObject { | 103 | class WaitTreeEvent : public WaitTreeWaitObject { |
| 104 | Q_OBJECT | 104 | Q_OBJECT |
| 105 | public: | 105 | public: |
| 106 | WaitTreeEvent(const Kernel::Event& object); | 106 | explicit WaitTreeEvent(const Kernel::Event& object); |
| 107 | std::vector<std::unique_ptr<WaitTreeItem>> GetChildren() const override; | 107 | std::vector<std::unique_ptr<WaitTreeItem>> GetChildren() const override; |
| 108 | }; | 108 | }; |
| 109 | 109 | ||
| 110 | class WaitTreeMutex : public WaitTreeWaitObject { | 110 | class WaitTreeMutex : public WaitTreeWaitObject { |
| 111 | Q_OBJECT | 111 | Q_OBJECT |
| 112 | public: | 112 | public: |
| 113 | WaitTreeMutex(const Kernel::Mutex& object); | 113 | explicit WaitTreeMutex(const Kernel::Mutex& object); |
| 114 | std::vector<std::unique_ptr<WaitTreeItem>> GetChildren() const override; | 114 | std::vector<std::unique_ptr<WaitTreeItem>> GetChildren() const override; |
| 115 | }; | 115 | }; |
| 116 | 116 | ||
| 117 | class WaitTreeSemaphore : public WaitTreeWaitObject { | 117 | class WaitTreeSemaphore : public WaitTreeWaitObject { |
| 118 | Q_OBJECT | 118 | Q_OBJECT |
| 119 | public: | 119 | public: |
| 120 | WaitTreeSemaphore(const Kernel::Semaphore& object); | 120 | explicit WaitTreeSemaphore(const Kernel::Semaphore& object); |
| 121 | std::vector<std::unique_ptr<WaitTreeItem>> GetChildren() const override; | 121 | std::vector<std::unique_ptr<WaitTreeItem>> GetChildren() const override; |
| 122 | }; | 122 | }; |
| 123 | 123 | ||
| 124 | class WaitTreeTimer : public WaitTreeWaitObject { | 124 | class WaitTreeTimer : public WaitTreeWaitObject { |
| 125 | Q_OBJECT | 125 | Q_OBJECT |
| 126 | public: | 126 | public: |
| 127 | WaitTreeTimer(const Kernel::Timer& object); | 127 | explicit WaitTreeTimer(const Kernel::Timer& object); |
| 128 | std::vector<std::unique_ptr<WaitTreeItem>> GetChildren() const override; | 128 | std::vector<std::unique_ptr<WaitTreeItem>> GetChildren() const override; |
| 129 | }; | 129 | }; |
| 130 | 130 | ||
| 131 | class WaitTreeMutexList : public WaitTreeExpandableItem { | 131 | class WaitTreeMutexList : public WaitTreeExpandableItem { |
| 132 | Q_OBJECT | 132 | Q_OBJECT |
| 133 | public: | 133 | public: |
| 134 | WaitTreeMutexList(const boost::container::flat_set<Kernel::SharedPtr<Kernel::Mutex>>& list); | 134 | explicit WaitTreeMutexList( |
| 135 | const boost::container::flat_set<Kernel::SharedPtr<Kernel::Mutex>>& list); | ||
| 136 | |||
| 135 | QString GetText() const override; | 137 | QString GetText() const override; |
| 136 | std::vector<std::unique_ptr<WaitTreeItem>> GetChildren() const override; | 138 | std::vector<std::unique_ptr<WaitTreeItem>> GetChildren() const override; |
| 137 | 139 | ||
| @@ -142,7 +144,7 @@ private: | |||
| 142 | class WaitTreeThreadList : public WaitTreeExpandableItem { | 144 | class WaitTreeThreadList : public WaitTreeExpandableItem { |
| 143 | Q_OBJECT | 145 | Q_OBJECT |
| 144 | public: | 146 | public: |
| 145 | WaitTreeThreadList(const std::vector<Kernel::SharedPtr<Kernel::Thread>>& list); | 147 | explicit WaitTreeThreadList(const std::vector<Kernel::SharedPtr<Kernel::Thread>>& list); |
| 146 | QString GetText() const override; | 148 | QString GetText() const override; |
| 147 | std::vector<std::unique_ptr<WaitTreeItem>> GetChildren() const override; | 149 | std::vector<std::unique_ptr<WaitTreeItem>> GetChildren() const override; |
| 148 | 150 | ||
| @@ -154,7 +156,7 @@ class WaitTreeModel : public QAbstractItemModel { | |||
| 154 | Q_OBJECT | 156 | Q_OBJECT |
| 155 | 157 | ||
| 156 | public: | 158 | public: |
| 157 | WaitTreeModel(QObject* parent = nullptr); | 159 | explicit WaitTreeModel(QObject* parent = nullptr); |
| 158 | 160 | ||
| 159 | QVariant data(const QModelIndex& index, int role) const override; | 161 | QVariant data(const QModelIndex& index, int role) const override; |
| 160 | QModelIndex index(int row, int column, const QModelIndex& parent) const override; | 162 | QModelIndex index(int row, int column, const QModelIndex& parent) const override; |
| @@ -173,7 +175,7 @@ class WaitTreeWidget : public QDockWidget { | |||
| 173 | Q_OBJECT | 175 | Q_OBJECT |
| 174 | 176 | ||
| 175 | public: | 177 | public: |
| 176 | WaitTreeWidget(QWidget* parent = nullptr); | 178 | explicit WaitTreeWidget(QWidget* parent = nullptr); |
| 177 | 179 | ||
| 178 | public slots: | 180 | public slots: |
| 179 | void OnDebugModeEntered(); | 181 | void OnDebugModeEntered(); |
diff --git a/src/citra_qt/hotkeys.h b/src/citra_qt/hotkeys.h index 350103c6f..46f48c2d8 100644 --- a/src/citra_qt/hotkeys.h +++ b/src/citra_qt/hotkeys.h | |||
| @@ -55,7 +55,7 @@ class GHotkeysDialog : public QWidget { | |||
| 55 | Q_OBJECT | 55 | Q_OBJECT |
| 56 | 56 | ||
| 57 | public: | 57 | public: |
| 58 | GHotkeysDialog(QWidget* parent = nullptr); | 58 | explicit GHotkeysDialog(QWidget* parent = nullptr); |
| 59 | 59 | ||
| 60 | private: | 60 | private: |
| 61 | Ui::hotkeys ui; | 61 | Ui::hotkeys ui; |
diff --git a/src/citra_qt/util/spinbox.h b/src/citra_qt/util/spinbox.h index a57355cd6..2fa1db3a4 100644 --- a/src/citra_qt/util/spinbox.h +++ b/src/citra_qt/util/spinbox.h | |||
| @@ -42,7 +42,7 @@ class CSpinBox : public QAbstractSpinBox { | |||
| 42 | Q_OBJECT | 42 | Q_OBJECT |
| 43 | 43 | ||
| 44 | public: | 44 | public: |
| 45 | CSpinBox(QWidget* parent = nullptr); | 45 | explicit CSpinBox(QWidget* parent = nullptr); |
| 46 | 46 | ||
| 47 | void stepBy(int steps) override; | 47 | void stepBy(int steps) override; |
| 48 | StepEnabled stepEnabled() const override; | 48 | StepEnabled stepEnabled() const override; |