projects
/
metaproxy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da5fc2b
)
Add const to Record less than operator in order to compile on OS X Mavericks
author
Dennis Schafroth
<dennis@schafroth.com>
Sat, 23 Nov 2013 07:52:26 +0000
(08:52 +0100)
committer
Dennis Schafroth
<dennis@schafroth.com>
Sat, 23 Nov 2013 07:52:26 +0000
(08:52 +0100)
src/filter_sort.cpp
patch
|
blob
|
history
diff --git
a/src/filter_sort.cpp
b/src/filter_sort.cpp
index
e36e8cd
..
d6a1993
100644
(file)
--- a/
src/filter_sort.cpp
+++ b/
src/filter_sort.cpp
@@
-70,7
+70,7
@@
namespace metaproxy_1 {
Record(Z_NamePlusRecord *n, const char *namespaces,
const char *expr, bool debug);
~Record();
- bool operator < (const Record &rhs);
+ bool operator < (const Record &rhs) const;
};
class Sort::RecordList : boost::noncopyable {
Odr_oid *syntax;
@@
-286,7
+286,7
@@
yf::Sort::Record::~Record()
{
}
-bool yf::Sort::Record::operator < (const Record &rhs)
+bool yf::Sort::Record::operator < (const Record &rhs) const
{
if (strcmp(this->score.c_str(), rhs.score.c_str()) < 0)
return true;