The NOT_DANGLING specifier should be before the const attribute

Fixes a warning with GCC-14.
This commit is contained in:
Steve Cotton 2024-09-27 16:27:12 +02:00 committed by Charles Dang
parent 82c7b4c7eb
commit 3e464cb856

View file

@ -745,7 +745,7 @@ public:
}
template <class T>
const NOT_DANGLING T* find_widget(
NOT_DANGLING const T* find_widget(
const std::string& id,
const bool must_be_active,
const bool must_exist) const
@ -778,7 +778,7 @@ public:
}
template <class T>
const NOT_DANGLING T& find_widget(
NOT_DANGLING const T& find_widget(
const std::string& id,
const bool must_be_active = false) const
{