diff --git a/include/linphone/utils/general.h b/include/linphone/utils/general.h index d83dd0e37..bfef0a83f 100644 --- a/include/linphone/utils/general.h +++ b/include/linphone/utils/general.h @@ -103,7 +103,7 @@ class ObjectPrivate; #endif template -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(it->second);