[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenonbeta/krecipes/src
From: Jason Kivlighn <confederacy2 () excite ! com>
Date: 2004-04-27 1:14:18
Message-ID: 20040427011418.F130C9A75 () office ! kde ! org
[Download RAW message or body]
CVS commit by jkivlighn:
Implement operator< in order to use qHeapSort to sort by element name.
M +3 -0 element.h 1.12
--- kdenonbeta/krecipes/src/element.h #1.11:1.12
@@ -31,4 +31,7 @@ public:
/** Compare two elements by their id */
bool operator==(const Element &) const;
+
+ /** Compare (sort) by name */
+ bool operator<(const Element &e) const { return name < e.name; }
};
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic