From 87889196b85d0b237350fbd0001fc79d2bb427ea Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sat, 7 Nov 2020 17:43:49 +0200 Subject: [PATCH] Cppcheck warning. --- src/libs/vpatterndb/vcontainer.cpp | 4 ++-- src/libs/vpatterndb/vcontainer.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libs/vpatterndb/vcontainer.cpp b/src/libs/vpatterndb/vcontainer.cpp index 11b6a2ef7..cfdff0d03 100644 --- a/src/libs/vpatterndb/vcontainer.cpp +++ b/src/libs/vpatterndb/vcontainer.cpp @@ -242,7 +242,7 @@ quint32 VContainer::GetPieceForPiecePath(quint32 id) const } //--------------------------------------------------------------------------------------------------------------------- -void VContainer::RegisterUniqueName(VGObject *obj) +void VContainer::RegisterUniqueName(VGObject *obj) const { SCASSERT(obj != nullptr) QSharedPointer pointer(obj); @@ -250,7 +250,7 @@ void VContainer::RegisterUniqueName(VGObject *obj) } //--------------------------------------------------------------------------------------------------------------------- -void VContainer::RegisterUniqueName(const QSharedPointer &obj) +void VContainer::RegisterUniqueName(const QSharedPointer &obj) const { SCASSERT(not obj.isNull()) diff --git a/src/libs/vpatterndb/vcontainer.h b/src/libs/vpatterndb/vcontainer.h index 13adf3942..304240755 100644 --- a/src/libs/vpatterndb/vcontainer.h +++ b/src/libs/vpatterndb/vcontainer.h @@ -151,8 +151,8 @@ public: void UpdateId(quint32 newId) const; static void UpdateId(quint32 newId, const QString &nspace); - void RegisterUniqueName(VGObject *obj); - void RegisterUniqueName(const QSharedPointer &obj); + void RegisterUniqueName(VGObject *obj) const; + void RegisterUniqueName(const QSharedPointer &obj) const; quint32 AddGObject(VGObject *obj); quint32 AddGObject(const QSharedPointer &obj);