From 1f2189d5a048b4dc8b4f900c227ed1e2bcf0a4f0 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Mon, 27 Aug 2012 22:12:15 +0200 Subject: [PATCH] don't pass QLatin1String by ref it's pointless Change-Id: Ia02762a1f79399970cbdf43b3b20e08b4e54fd3b Reviewed-by: Daniel Teske --- src/shared/proparser/proitems.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/proparser/proitems.h b/src/shared/proparser/proitems.h index fd48bb4eb00..7aa893a0a83 100644 --- a/src/shared/proparser/proitems.h +++ b/src/shared/proparser/proitems.h @@ -80,10 +80,10 @@ public: ProString &append(const ProStringList &other, bool *pending = 0, bool skipEmpty1st = false); bool operator==(const ProString &other) const { return toQStringRef() == other.toQStringRef(); } bool operator==(const QString &other) const { return toQStringRef() == other; } - bool operator==(const QLatin1String &other) const { return toQStringRef() == other; } + bool operator==(QLatin1String other) const { return toQStringRef() == other; } bool operator!=(const ProString &other) const { return !(*this == other); } bool operator!=(const QString &other) const { return !(*this == other); } - bool operator!=(const QLatin1String &other) const { return !(*this == other); } + bool operator!=(QLatin1String other) const { return !(*this == other); } bool isNull() const { return m_string.isNull(); } bool isEmpty() const { return !m_length; } int size() const { return m_length; }