1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Properly make some methods const.

These had const at the beginning of the declaration, so it applied to
the return value rather than the object the method was being called on.
This commit is contained in:
david
2011-06-14 02:29:41 +00:00
parent 17a57e186b
commit 23d33d9bc3
3 changed files with 3 additions and 3 deletions

View File

@@ -268,7 +268,7 @@ class ServiceProbe {
void setRarity(const char *portstr, int lineno);
// Simply returns the rarity of this probe
const int getRarity() { return rarity; }
int getRarity() const { return rarity; }
// Takes a match line in a probe description and adds it to the
// list of matches for this probe. This function should be passed