From a125fd759fc2bfb080ef792ead10e2edfb5b0222 Mon Sep 17 00:00:00 2001 From: eidheim Date: Fri, 11 Aug 2017 08:34:17 +0200 Subject: [PATCH] SourceLocation: Added const to operator== and operator!= --- src/SourceLocation.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SourceLocation.h b/src/SourceLocation.h index 930d930..98b554d 100644 --- a/src/SourceLocation.h +++ b/src/SourceLocation.h @@ -6,8 +6,8 @@ namespace clangmm { class Offset { public: - bool operator==(const clangmm::Offset &o) {return line==o.line && index==o.index;} - bool operator!=(const clangmm::Offset &o) {return !(*this==o);} + bool operator==(const clangmm::Offset &o) const {return line==o.line && index==o.index;} + bool operator!=(const clangmm::Offset &o) const {return !(*this==o);} unsigned line; unsigned index; //byte index in line (not char number) };