aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2014-06-23 17:03:49 +1000
committerNeil <nyamatongwe@gmail.com>2014-06-23 17:03:49 +1000
commit7859dd2ac89ed078692cd370b3bdb43740298c5e (patch)
tree76ee493e227ee12319bd334f14572cce79f6fd6f /src/Document.h
parentddeaa27240bc59e74043776154c20a08914eb57d (diff)
downloadscintilla-mirror-7859dd2ac89ed078692cd370b3bdb43740298c5e.tar.gz
Use Range type for hotspot to simplify manipulation.
Diffstat (limited to 'src/Document.h')
-rw-r--r--src/Document.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Document.h b/src/Document.h
index 8212db674..a59f192a9 100644
--- a/src/Document.h
+++ b/src/Document.h
@@ -39,6 +39,10 @@ public:
start(start_), end(end_) {
}
+ bool operator==(const Range &other) const {
+ return (start == other.start) && (end == other.end);
+ }
+
bool Valid() const {
return (start != invalidPosition) && (end != invalidPosition);
}