aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2021-08-10 14:17:18 +0200
committerFabian Kosmale <fabian.kosmale@qt.io>2021-08-10 19:44:12 +0200
commitbcf6b4fc5bdf6120a073be6702158111f37cc1a2 (patch)
tree7291af3bfdb768e6bfdebc67cfb322900523c897 /src/qml/compiler
parent643e093a6d8e170f5b49759a8fa5d57622859db2 (diff)
Fix linkage of defaultCodegenWarningInterface
We want one instance of the function's static variable, so the function must not be static itself. This still can lead to having multiple copies in the case where multiple shared libraries are used. But this is a) not the case currently and b) having one copy pare library is not problematic: The variable is stateless, and only static to ease lifetime management of the pointer. Change-Id: Iad3ea1ec74125446d926bc6a462866aeae936811 Reviewed-by: Andrei Golubev <andrei.golubev@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/compiler')
-rw-r--r--src/qml/compiler/qv4codegen_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/compiler/qv4codegen_p.h b/src/qml/compiler/qv4codegen_p.h
index 3ff3ed0460..f773e3905f 100644
--- a/src/qml/compiler/qv4codegen_p.h
+++ b/src/qml/compiler/qv4codegen_p.h
@@ -89,7 +89,7 @@ public:
virtual ~CodegenWarningInterface() = default;
};
-static inline CodegenWarningInterface *defaultCodegenWarningInterface()
+inline CodegenWarningInterface *defaultCodegenWarningInterface()
{
static CodegenWarningInterface interface;
return &interface;