mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +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:
parent
583076fedf
commit
02e612c596
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue