From 02e612c59656f56c1a784bdd0b4293d2a17c67a4 Mon Sep 17 00:00:00 2001 From: david Date: Wed, 4 Aug 2010 21:05:02 +0000 Subject: [PATCH] =?UTF-8?q?Make=20data=5Ffile=5Frecord::operator<=20const.?= =?UTF-8?q?=20The=20lack=20of=20this=20might=20have=20been=20causing=20a?= =?UTF-8?q?=20compile=20error=20reported=20by=20Nuno=20Gon=C3=83=C2=A7alve?= =?UTF-8?q?s:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit error: passing 'const data_file_record' as 'this' argument of 'bool data_file_record::operator<(const data_file_record&)' discards qualifiers make[4]: *** [output.o] Error 1 --- output.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/output.cc b/output.cc index 8bfcbac9e..2eb78f9db 100644 --- a/output.cc +++ b/output.cc @@ -2240,7 +2240,7 @@ struct data_file_record { /* Compares this record to another. First compare the directory names, then compare the file names. */ - bool operator<(const struct data_file_record &other) { + bool operator<(const struct data_file_record &other) const { int cmp; cmp = dir.compare(other.dir);