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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user