diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-09-18 09:55:49 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-09-20 13:44:47 +0200 |
| commit | 2cc7ded80caa506263ba2c9fd87db76dae71956a (patch) | |
| tree | 353da05cded3d6ca9dd0efa5d4cb4a34e0dc57bf /sources/pyside6/libpyside/class_property.cpp | |
| parent | c47bc0eea7348020d748f67555f60542ff496c0a (diff) | |
Fix namespaces
- Use nested namespaces instead repetitive namespace declaration
- Remove anonymous namespaces that contain only static functions.
"static" is sufficient here, the anonymous namespace only increases
compilation time.
Pick-to: 6.6 6.5
Change-Id: I6cd1b63da79eaf40a1b7ae031def97fa22903e99
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/pyside6/libpyside/class_property.cpp')
| -rw-r--r-- | sources/pyside6/libpyside/class_property.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sources/pyside6/libpyside/class_property.cpp b/sources/pyside6/libpyside/class_property.cpp index c255ef1e9..82c2197d9 100644 --- a/sources/pyside6/libpyside/class_property.cpp +++ b/sources/pyside6/libpyside/class_property.cpp @@ -108,7 +108,7 @@ static int SbkObjectType_meta_setattro(PyObject *obj, PyObject *name, PyObject * /* * These functions are added to the SbkObjectType_TypeF() dynamically. */ -namespace PySide { namespace ClassProperty { +namespace PySide::ClassProperty { static const char *PyClassProperty_SignatureStrings[] = { "PySide6.QtCore.PyClassProperty(cls," @@ -135,5 +135,4 @@ void init(PyObject *module) PyModule_AddObject(module, "PyClassProperty", classproptype); } -} // namespace ClassProperty -} // namespace PySide +} // namespace PySide::ClassProperty |
