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
commit4bbf7d16f03b48ddd4d2184bc21cb98889b64899 (patch)
tree7e1da5c1a9de988de16dff4e5f38ececb707c898 /src/Document.h
parent3b5496d80c0fb79ebad20d7253b944a072d5cd7f (diff)
downloadscintilla-mirror-4bbf7d16f03b48ddd4d2184bc21cb98889b64899.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);
}