aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrei Golubev <andrei.golubev@qt.io>2022-01-27 15:03:45 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-01-31 12:41:44 +0000
commit63b4180aeb60afd4e991786eb3002baa2a628a35 (patch)
treee7c046ab86b59ad90f1f775923702904516d1ac7
parent4c7b3ad11cce0d340cd9fb378eebbf57eb094b12 (diff)
Use public as default access specifier of QQmlJSMetaMethod
We don't seem to use it anyhow at present, so changing the default is safe. Making it public would also ensure that we have compatible state between constructors Change-Id: Ic10213af8c5a52e7da2fd5de62c40ae333359759 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> (cherry picked from commit bb911a16aa6c3e9eb4ddf5f5c8657367b9017c7b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/qmlcompiler/qqmljsmetatypes_p.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/qmlcompiler/qqmljsmetatypes_p.h b/src/qmlcompiler/qqmljsmetatypes_p.h
index 903ab1992d..ed859f7f6f 100644
--- a/src/qmlcompiler/qqmljsmetatypes_p.h
+++ b/src/qmlcompiler/qqmljsmetatypes_p.h
@@ -138,7 +138,6 @@ public:
: m_name(std::move(name))
, m_returnTypeName(std::move(returnType))
, m_methodType(Method)
- , m_methodAccess(Public)
{}
QString methodName() const { return m_name; }
@@ -250,7 +249,7 @@ private:
QList<QQmlJSAnnotation> m_annotations;
Type m_methodType = Signal;
- Access m_methodAccess = Private;
+ Access m_methodAccess = Public;
int m_revision = 0;
bool m_isConstructor = false;
bool m_isJavaScriptFunction = false;