aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@theqtcompany.com>2015-06-03 16:38:40 +0200
committerChristian Kandeler <christian.kandeler@theqtcompany.com>2015-06-03 14:48:50 +0000
commit9309633cb821643be1366f6c87ec31b55e26be09 (patch)
treebfc05fb71c61f0d56b857b701768c85ecdb7662d
parentef4c4e55c3f0bc9c02c84e4b45fdcea1cd491615 (diff)
Make operator< of Item::Module a non-member.
Some compilers seem to have problems when it's a member. Change-Id: I69694b4baf59f6b1af93fde541db281742cb7ad5 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
-rw-r--r--src/lib/corelib/language/item.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/corelib/language/item.h b/src/lib/corelib/language/item.h
index 4f7cb0d81..4b9ae6424 100644
--- a/src/lib/corelib/language/item.h
+++ b/src/lib/corelib/language/item.h
@@ -68,7 +68,6 @@ public:
Module()
: item(0)
{}
- bool operator<(const Module &other) { return name < other.name; }
QualifiedId name;
Item *item;
@@ -278,6 +277,8 @@ inline const Item::Modules &Item::modules() const
return m_modules;
}
+inline bool operator<(const Item::Module &m1, const Item::Module &m2) { return m1.name < m2.name; }
+
} // namespace Internal
} // namespace qbs