From 3f9266275f55946410d4897d599df320c86508ef Mon Sep 17 00:00:00 2001 From: silverqx Date: Mon, 3 Jul 2023 09:48:03 +0200 Subject: [PATCH] made operator() protected --- include/orm/tiny/support/stores/baserelationstore.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/orm/tiny/support/stores/baserelationstore.hpp b/include/orm/tiny/support/stores/baserelationstore.hpp index 6fc426dc7..73ca8b2c9 100644 --- a/include/orm/tiny/support/stores/baserelationstore.hpp +++ b/include/orm/tiny/support/stores/baserelationstore.hpp @@ -82,6 +82,9 @@ namespace Support::Stores { Q_DISABLE_COPY(BaseRelationStore) + // To access operator() + friend Derived; + /*! Alias for the NotNull. */ template using NotNull = Orm::Utils::NotNull; @@ -104,12 +107,12 @@ namespace Support::Stores /*! Visit the given relation. */ void visit(const QString &relation); + protected: /*! Called from Model::u_relations to pass reference to the relation method, an enter point of the visitation. */ template Method> void operator()(Method method); - protected: /*! Currently held store type. */ inline RelationStoreType getStoreType() const noexcept;