qobject_p.h: Const-correctness fix

Note: This function is being called inside GammaRay

Change-Id: I4260d2b720d87eec829758cf3b86bc0593d964f2
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Kevin Funk 2019-05-27 17:04:42 +02:00 committed by Marc Mutz
parent a7e9fab3e9
commit 0f777a3b75
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ public:
{
return reinterpret_cast<const ConnectionList *>(this + 1)[i + 1];
}
int count() { return static_cast<int>(allocated); }
int count() const { return static_cast<int>(allocated); }
};