fix(General): use const map instead of map on getPublicHelper

This commit is contained in:
Ronan Abhamon 2017-10-03 15:22:45 +02:00
parent 2bac63219e
commit e741507868

View file

@ -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);