From eb1f6c63a57f2742f2052acb4517d8d74340d73c Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Sun, 28 Aug 2016 19:12:47 +0200 Subject: uic: use QStringList::removeDuplicates() ... instead of rolling our own version. Change-Id: Ibd29f233844a6283349d086c4fbc88d7e1087653 Reviewed-by: Friedemann Kleint --- src/tools/uic/databaseinfo.cpp | 2 +- src/tools/uic/utils.h | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/tools/uic/databaseinfo.cpp b/src/tools/uic/databaseinfo.cpp index e491d6b19a..73fcf06c54 100644 --- a/src/tools/uic/databaseinfo.cpp +++ b/src/tools/uic/databaseinfo.cpp @@ -45,7 +45,7 @@ void DatabaseInfo::acceptUI(DomUI *node) TreeWalker::acceptUI(node); - m_connections = unique(m_connections); + m_connections.removeDuplicates(); } void DatabaseInfo::acceptWidget(DomWidget *node) diff --git a/src/tools/uic/utils.h b/src/tools/uic/utils.h index a6532eb534..7c5918cab9 100644 --- a/src/tools/uic/utils.h +++ b/src/tools/uic/utils.h @@ -132,14 +132,6 @@ inline QHash propertyMap(const QList &pro return map; } -inline QStringList unique(const QStringList &lst) -{ - QHash h; - for (int i=0; i