summaryrefslogtreecommitdiffstats
path: root/src/tools/uic/python/pythonwriteimports.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/uic/python/pythonwriteimports.cpp')
-rw-r--r--src/tools/uic/python/pythonwriteimports.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/uic/python/pythonwriteimports.cpp b/src/tools/uic/python/pythonwriteimports.cpp
index 74eeab8387e..3c6f5710cee 100644
--- a/src/tools/uic/python/pythonwriteimports.cpp
+++ b/src/tools/uic/python/pythonwriteimports.cpp
@@ -124,9 +124,9 @@ void WriteImports::acceptUI(DomUI *node)
output << "import " << w << '\n';
}
- if (auto resources = node->elementResources()) {
- const auto includes = resources->elementInclude();
- for (auto include : includes) {
+ if (auto *resources = node->elementResources()) {
+ const auto &includes = resources->elementInclude();
+ for (auto *include : includes) {
if (include->hasAttributeLocation())
writeResourceImport(include->attributeLocation());
}