1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-21 23:19:03 +00:00

Make data_file_record::operator< const. The lack of this might have been

causing a compile error reported by Nuno Gonçalves:

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
This commit is contained in:
david
2010-08-04 21:05:02 +00:00
parent 583076fedf
commit 02e612c596

View File

@@ -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);