diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2021-08-10 14:17:18 +0200 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2021-08-10 19:44:12 +0200 |
commit | bcf6b4fc5bdf6120a073be6702158111f37cc1a2 (patch) | |
tree | 7291af3bfdb768e6bfdebc67cfb322900523c897 /src | |
parent | 643e093a6d8e170f5b49759a8fa5d57622859db2 (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')
-rw-r--r-- | src/qml/compiler/qv4codegen_p.h | 2 |
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; |