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

Pick-to: 6.3
Change-Id: Ic10213af8c5a52e7da2fd5de62c40ae333359759
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
Andrei Golubev 2022-01-27 15:03:45 +01:00
parent 98d4a44ecf
commit bb911a16aa
1 changed files with 1 additions and 2 deletions

View File

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