Cppcheck warning.

This commit is contained in:
Roman Telezhynskyi 2020-11-07 17:43:49 +02:00
parent d9f4035f7d
commit 87889196b8
2 changed files with 4 additions and 4 deletions

View File

@ -242,7 +242,7 @@ quint32 VContainer::GetPieceForPiecePath(quint32 id) const
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
void VContainer::RegisterUniqueName(VGObject *obj) void VContainer::RegisterUniqueName(VGObject *obj) const
{ {
SCASSERT(obj != nullptr) SCASSERT(obj != nullptr)
QSharedPointer<VGObject> pointer(obj); QSharedPointer<VGObject> pointer(obj);
@ -250,7 +250,7 @@ void VContainer::RegisterUniqueName(VGObject *obj)
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
void VContainer::RegisterUniqueName(const QSharedPointer<VGObject> &obj) void VContainer::RegisterUniqueName(const QSharedPointer<VGObject> &obj) const
{ {
SCASSERT(not obj.isNull()) SCASSERT(not obj.isNull())

View File

@ -151,8 +151,8 @@ public:
void UpdateId(quint32 newId) const; void UpdateId(quint32 newId) const;
static void UpdateId(quint32 newId, const QString &nspace); static void UpdateId(quint32 newId, const QString &nspace);
void RegisterUniqueName(VGObject *obj); void RegisterUniqueName(VGObject *obj) const;
void RegisterUniqueName(const QSharedPointer<VGObject> &obj); void RegisterUniqueName(const QSharedPointer<VGObject> &obj) const;
quint32 AddGObject(VGObject *obj); quint32 AddGObject(VGObject *obj);
quint32 AddGObject(const QSharedPointer<VGObject> &obj); quint32 AddGObject(const QSharedPointer<VGObject> &obj);