From 73c312ec1abd23c09219217f8157191c1789afb3 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Fri, 19 Mar 2010 19:41:59 +0000 Subject: [PATCH] Slight code optimization --- src/supportedengines.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/supportedengines.h b/src/supportedengines.h index 1712cbedc..6ceb2333f 100644 --- a/src/supportedengines.h +++ b/src/supportedengines.h @@ -113,7 +113,7 @@ public: QStringList enginesEnabled() const { QStringList engines; - foreach(SupportedEngine *engine, values()) { + foreach(const SupportedEngine *engine, values()) { if(engine->isEnabled()) engines << engine->getName(); } @@ -122,9 +122,9 @@ public: QStringList supportedCategories() const { QStringList supported_cat; - foreach(SupportedEngine *engine, values()) { + foreach(const SupportedEngine *engine, values()) { if(engine->isEnabled()) { - QStringList s = engine->getSupportedCategories(); + const QStringList &s = engine->getSupportedCategories(); foreach(QString cat, s) { cat = cat.trimmed(); if(!cat.isEmpty() && !supported_cat.contains(cat))