diff options
| author | Neil <nyamatongwe@gmail.com> | 2019-11-01 13:00:12 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2019-11-01 13:00:12 +1100 |
| commit | 55d1068389ac95f94ffe6ac0a5ca87820af9b363 (patch) | |
| tree | 5b3439afbcd10365da2abd6ac578a98e50d06c68 /src | |
| parent | 16b9ac336b766f1fd394d77d40611a4875162930 (diff) | |
| download | scintilla-mirror-55d1068389ac95f94ffe6ac0a5ca87820af9b363.tar.gz | |
Backport: Remove noexcept from allocating constructors as may throw on memory exhaustion.
Backport of changeset 7750:12807611677a.
Diffstat (limited to 'src')
| -rw-r--r-- | src/PositionCache.cxx | 2 | ||||
| -rw-r--r-- | src/PositionCache.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/PositionCache.cxx b/src/PositionCache.cxx index 8910a2955..a1f71fdae 100644 --- a/src/PositionCache.cxx +++ b/src/PositionCache.cxx @@ -381,7 +381,7 @@ static unsigned int KeyFromString(const char *charBytes, size_t len) { return k; } -SpecialRepresentations::SpecialRepresentations() noexcept { +SpecialRepresentations::SpecialRepresentations() { const short none = 0; std::fill(startByteHasReprs, std::end(startByteHasReprs), none); } diff --git a/src/PositionCache.h b/src/PositionCache.h index 6899ba99f..6edaddf8b 100644 --- a/src/PositionCache.h +++ b/src/PositionCache.h @@ -171,7 +171,7 @@ class SpecialRepresentations { MapRepresentation mapReprs; short startByteHasReprs[0x100]; public: - SpecialRepresentations() noexcept; + SpecialRepresentations(); void SetRepresentation(const char *charBytes, const char *value); void ClearRepresentation(const char *charBytes); const Representation *RepresentationFromCharacter(const char *charBytes, size_t len) const; |
