Skip to content

Commit

Permalink
Fix gcc compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyschoen committed Feb 13, 2025
1 parent f1bcd22 commit 761c608
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Source/Components/ColourPicker.h
Original file line number Diff line number Diff line change
Expand Up @@ -371,9 +371,14 @@ class ColourPicker final : public Component {
}
}

std::pair<float, float> getHS()
auto getHS()
{
return { h, s };
struct HS
{
float hue, sat;
};

return HS{ h, s };
}

void setHS(float newH, float newS)
Expand Down

0 comments on commit 761c608

Please sign in to comment.