diff options
author | Andrei Golubev <andrei.golubev@qt.io> | 2021-03-05 16:42:42 +0100 |
---|---|---|
committer | Andrei Golubev <andrei.golubev@qt.io> | 2021-03-08 10:35:01 +0100 |
commit | 48c4a17e18c69a4026bbf5a25a3f0dbbbd94a02f (patch) | |
tree | ab0bb9ea733942a5a41663747935435ab36b4036 /src/qmlcompiler/qqmljsscope_p.h | |
parent | 5688486289f503dcde99578c72b7b768f19e8eb9 (diff) |
QQmlJSScope: make interfaceNames() const
Guessing the const specifier was accidentally forgotten
Change-Id: Ifb8e1f9ba62c862c30b8de439380baeb61512e53
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qmlcompiler/qqmljsscope_p.h')
-rw-r--r-- | src/qmlcompiler/qqmljsscope_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qmlcompiler/qqmljsscope_p.h b/src/qmlcompiler/qqmljsscope_p.h index 9f05c112b3..6db87b13ca 100644 --- a/src/qmlcompiler/qqmljsscope_p.h +++ b/src/qmlcompiler/qqmljsscope_p.h @@ -198,7 +198,7 @@ public: QList<Export> exports() const { return m_exports; } void setInterfaceNames(const QStringList& interfaces) { m_interfaceNames = interfaces; } - QStringList interfaceNames() { return m_interfaceNames; } + QStringList interfaceNames() const { return m_interfaceNames; } // If isComposite(), this is the QML/JS name of the prototype. Otherwise it's the // relevant base class (in the hierarchy starting from QObject) of a C++ type. |