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