mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-19 07:39:19 +02:00
reformat: parameters can be made pointer to const
This commit is contained in:
@@ -368,7 +368,7 @@ void ui::map_panel::render_contents()
|
||||
render_labels(transform, window_origin, surface_size);
|
||||
}
|
||||
|
||||
void ui::handle_map_object_click(ui_panel &parent, std::shared_ptr<map::map_object> &obj)
|
||||
void ui::handle_map_object_click(ui_panel &parent, const std::shared_ptr<map::map_object> &obj)
|
||||
{
|
||||
if (auto sem = std::dynamic_pointer_cast<map::semaphore>(obj))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user