aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/RunStyles.h
diff options
context:
space:
mode:
authornyamatongwe <unknown>2013-04-15 20:10:51 +1000
committernyamatongwe <unknown>2013-04-15 20:10:51 +1000
commit11173e2c5c822283e53af1713a42b348f2e504e0 (patch)
tree95a829aa5d9187f6d2369413c7061ddd793fedd0 /src/RunStyles.h
parent7d362c38ef421be1d6003b5a2a1bfc560c50b313 (diff)
downloadscintilla-mirror-11173e2c5c822283e53af1713a42b348f2e504e0.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