mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-29 17:29:20 +00:00
fix(General): use const map instead of map on getPublicHelper
This commit is contained in:
parent
2bac63219e
commit
e741507868
1 changed files with 1 additions and 1 deletions
|
|
@ -103,7 +103,7 @@ class ObjectPrivate;
|
|||
#endif
|
||||
|
||||
template<typename T, typename U>
|
||||
inline T *getPublicHelper (U *map, const ClonableObjectPrivate *context) {
|
||||
inline T *getPublicHelper (const U *map, const ClonableObjectPrivate *context) {
|
||||
auto it = map->find(context);
|
||||
L_ASSERT(it != map->end());
|
||||
return static_cast<T *>(it->second);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue