diff options
| author | Tim Blechmann <tim.blechmann@qt.io> | 2025-07-17 16:50:13 +0800 |
|---|---|---|
| committer | Tim Blechmann <tim.blechmann@qt.io> | 2025-08-08 21:25:55 +0800 |
| commit | c11d9459d87a4b981123709415e3563bdda66423 (patch) | |
| tree | 5a6c0b989d666b71d8bcfbbaa9f6f8f0a18db887 /src/qml/jsruntime/qv4stringobject.cpp | |
| parent | a4691c6e17f9b6a447d273998a1456d1e0dcaea9 (diff) | |
Harden namespacing
When using namespaced Qt, we need to prevent symbol clashes with symbols
of the same name.
* namespace some publicly visible classes
* hide classes in implementation in an anonymous namespace
* rename read/write to readValue/writeValue to avoid name clash with c
functions.
Task-number: QTBUG-138543
Pick-to: 6.10
Change-Id: Ica77462c1f81f1e01cc60477e5b56ecfe3c1abb4
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4stringobject.cpp')
| -rw-r--r-- | src/qml/jsruntime/qv4stringobject.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4stringobject.cpp b/src/qml/jsruntime/qv4stringobject.cpp index 5c9f527c31..ac06737bf5 100644 --- a/src/qml/jsruntime/qv4stringobject.cpp +++ b/src/qml/jsruntime/qv4stringobject.cpp @@ -74,12 +74,13 @@ bool StringObject::virtualDeleteProperty(Managed *m, PropertyKey id) return Object::virtualDeleteProperty(m, id); } +namespace { struct StringObjectOwnPropertyKeyIterator : ObjectOwnPropertyKeyIterator { ~StringObjectOwnPropertyKeyIterator() override = default; PropertyKey next(const QV4::Object *o, Property *pd = nullptr, PropertyAttributes *attrs = nullptr) override; - }; +} // namespace PropertyKey StringObjectOwnPropertyKeyIterator::next(const QV4::Object *o, Property *pd, PropertyAttributes *attrs) { |
