diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-10-07 10:16:42 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-10-13 10:20:47 +0200 |
| commit | ec5a625b1f81d03c813bcce168549bfbb7b8f314 (patch) | |
| tree | 0441d2bd1bd50c789eb39ff97501fee6398bbcb0 /sources/pyside6/plugins/designer/designercustomwidgets.cpp | |
| parent | 85c214435cb6de0ec056956413c8c387ad59e9cc (diff) | |
Port from qAsConst() to std::as_const()
qAsConst() will be deprecated in Qt 6.5.
Task-number: QTBUG-99313
Change-Id: Ibc7c2e26b0e52cec905a406ef081e0b99bcce50f
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside6/plugins/designer/designercustomwidgets.cpp')
| -rw-r--r-- | sources/pyside6/plugins/designer/designercustomwidgets.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside6/plugins/designer/designercustomwidgets.cpp b/sources/pyside6/plugins/designer/designercustomwidgets.cpp index 5585c7d22..c62f8b6fc 100644 --- a/sources/pyside6/plugins/designer/designercustomwidgets.cpp +++ b/sources/pyside6/plugins/designer/designercustomwidgets.cpp @@ -228,7 +228,7 @@ PyDesignerCustomWidgets::PyDesignerCustomWidgets(QObject *parent) : QObject(pare // Run all register*py files QString errorMessage; - for (const auto &pythonFile : qAsConst(pythonFiles)) { + for (const auto &pythonFile : std::as_const(pythonFiles)) { qCDebug(lcPySidePlugin) << "running" << pythonFile; if (!runPyScriptFile(pythonFile, &errorMessage)) qCWarning(lcPySidePlugin, "%s", qPrintable(errorMessage)); |
