mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-19 17:29:06 +02:00
Fix minor code issues flagged by PVS-Studio and reported by alphrixus.
This commit is contained in:
1 parent
6c8dc94691
commit
e51c58716b
11 files changed
+62
-64
No files matched your search
@@ -730,8 +730,8 @@ public:
|
||||
return this;
|
||||
}
|
||||
|
||||
MockButton *SetFlipHBG(float f) {
|
||||
flipHBG_ = f;
|
||||
MockButton *SetFlipHBG(bool b) {
|
||||
flipHBG_ = b;
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -750,7 +750,7 @@ public:
|
||||
return selectedButton_ && *selectedButton_ == button_;
|
||||
}
|
||||
|
||||
int Button() {
|
||||
int Button() const {
|
||||
return button_;
|
||||
}
|
||||
|
||||
@@ -776,7 +776,7 @@ class MockPSP : public UI::AnchorLayout {
|
||||
public:
|
||||
static constexpr float SCALE = 1.4f;
|
||||
|
||||
MockPSP(UI::LayoutParams *layoutParams = nullptr);
|
||||
explicit MockPSP(UI::LayoutParams *layoutParams = nullptr);
|
||||
void SelectButton(int btn);
|
||||
void FocusButton(int btn);
|
||||
void NotifyPressed(int btn);
|
||||
|
||||
Reference in new issue
Block a user