aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/RunStyles.h
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2013-04-15 20:10:51 +1000
committernyamatongwe <devnull@localhost>2013-04-15 20:10:51 +1000
commit7d7d3d61d6c663aa1a416027ef9a7fc98559ccb0 (patch)
treec8fd5302c502f4b90cf25906b4cca246e36ab540 /src/RunStyles.h
parentafaccacc703e9e436d2bc1c0a8900b8d8c0c7f65 (diff)
downloadscintilla-mirror-7d7d3d61d6c663aa1a416027ef9a7fc98559ccb0.tar.gz
RunStyles can be corrupted by filling 0 length ranges and ranges that go past end
so throw std::invalid_argument exceptions for these conditions. Provide a Check method to validate the consistency of a RunStyles and throw std::runtime_error if corruption is detected.
Diffstat (limited to 'src/RunStyles.h')
-rw-r--r--src/RunStyles.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/RunStyles.h b/src/RunStyles.h
index 4e90969a2..521c701fa 100644
--- a/src/RunStyles.h
+++ b/src/RunStyles.h
@@ -43,6 +43,8 @@ public:
bool AllSame() const;
bool AllSameAs(int value) const;
int Find(int value, int start) const;
+
+ void Check();
};
#ifdef SCI_NAMESPACE