17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-01 05:42:44 +01:00

refactor(sonar): declare non-mutating member functions const (cpp:S5817)

Virtual functions are left untouched so overrides keep matching.
This commit is contained in:
jerrrrycho
2026-10-10 15:26:48 +02:00
parent 01d2b9bf82
commit 8042953b95
82 changed files with 221 additions and 221 deletions

View File

@@ -5,7 +5,7 @@
map::objects map::Objects;
map::sorted_object_list map::objects::find_in_range(glm::vec3 from, float distance)
map::sorted_object_list map::objects::find_in_range(glm::vec3 from, float distance) const
{
sorted_object_list items;

View File

@@ -87,7 +87,7 @@ struct objects
bool poi_dirty = true;
// returns objects in range from vec3, NaN in Y ignores it
sorted_object_list find_in_range(glm::vec3 from, float distance);
sorted_object_list find_in_range(glm::vec3 from, float distance) const;
};
extern objects Objects;

View File

@@ -187,7 +187,7 @@ void trainingcard_panel::render_contents()
}
}
const std::string *trainingcard_panel::is_recording()
const std::string *trainingcard_panel::is_recording() const
{
if (!start_time_wall)
return nullptr;

View File

@@ -31,7 +31,7 @@ class trainingcard_panel : public ui_panel
~trainingcard_panel();
void render_contents() override;
const std::string *is_recording();
const std::string *is_recording() const;
std::string recording_timestamp;
};