mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Fix various small warnings (#4296)
* Fix `inconsistent-missing-override` warnings * Fix `final-dtor-non-final-class` warnings * Fix `ambiguous-reversed-operator` warnings
This commit is contained in:
parent
1faa973402
commit
5ad8ca791c
5 changed files with 12 additions and 5 deletions
|
@ -30,6 +30,9 @@
|
||||||
- Dev: Removed unused operators in `Image` (#4267)
|
- Dev: Removed unused operators in `Image` (#4267)
|
||||||
- Dev: Removed usage of deprecated `QDesktopWidget` (#4287)
|
- Dev: Removed usage of deprecated `QDesktopWidget` (#4287)
|
||||||
- Dev: Bump Cirrus CI FreeBSD image from 12.1 to 13.1. (#4295)
|
- Dev: Bump Cirrus CI FreeBSD image from 12.1 to 13.1. (#4295)
|
||||||
|
- Dev: Fixed `inconsistent-missing-override` warnings. (#4296)
|
||||||
|
- Dev: Fixed `final-dtor-non-final-class` warnings. (#4296)
|
||||||
|
- Dev: Fixed `ambiguous-reversed-operator` warnings. (#4296)
|
||||||
|
|
||||||
## 2.4.0
|
## 2.4.0
|
||||||
|
|
||||||
|
|
|
@ -846,6 +846,10 @@ else ()
|
||||||
target_compile_options(${LIBRARY_PROJECT} PUBLIC
|
target_compile_options(${LIBRARY_PROJECT} PUBLIC
|
||||||
-Wno-unused-local-typedef
|
-Wno-unused-local-typedef
|
||||||
-Wno-unused-private-field
|
-Wno-unused-private-field
|
||||||
|
-Werror=inconsistent-missing-override
|
||||||
|
-Werror=final-dtor-non-final-class
|
||||||
|
-Werror=ambiguous-reversed-operator
|
||||||
|
|
||||||
)
|
)
|
||||||
else ()
|
else ()
|
||||||
target_compile_options(${LIBRARY_PROJECT} PUBLIC
|
target_compile_options(${LIBRARY_PROJECT} PUBLIC
|
||||||
|
|
|
@ -27,12 +27,12 @@ public:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool operator==(const FlagsEnum<T> &other)
|
bool operator==(const FlagsEnum<T> &other) const
|
||||||
{
|
{
|
||||||
return this->value_ == other.value_;
|
return this->value_ == other.value_;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool operator!=(const FlagsEnum<T> &other)
|
bool operator!=(const FlagsEnum<T> &other) const
|
||||||
{
|
{
|
||||||
return this->value_ != other.value_;
|
return this->value_ != other.value_;
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,8 +53,8 @@ public:
|
||||||
pajlada::Signals::Signal<QColor> closed;
|
pajlada::Signals::Signal<QColor> closed;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void closeEvent(QCloseEvent *);
|
void closeEvent(QCloseEvent *) override;
|
||||||
void themeChangedEvent();
|
void themeChangedEvent() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
struct {
|
struct {
|
||||||
|
|
|
@ -14,7 +14,7 @@ namespace chatterino {
|
||||||
|
|
||||||
class Hotkey;
|
class Hotkey;
|
||||||
|
|
||||||
class EditHotkeyDialog : public QDialog
|
class EditHotkeyDialog final : public QDialog
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue