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:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user