diff options
author | nyamatongwe <nyamatongwe@gmail.com> | 2013-07-23 11:13:57 +1000 |
---|---|---|
committer | nyamatongwe <nyamatongwe@gmail.com> | 2013-07-23 11:13:57 +1000 |
commit | 1e60a227ca7eb081b7eb02b0aef9bbb8705733dc (patch) | |
tree | 6d09443e7758fcee5a9aa721eeb59811311bc278 /src | |
parent | 5cbf336f95db427027a72699be6f5034762515aa (diff) | |
download | scintilla-mirror-1e60a227ca7eb081b7eb02b0aef9bbb8705733dc.tar.gz |
Only use map for character representations instead of unordered_map where possible.
unordered_map caused too many porting problems.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 3 | ||||
-rw-r--r-- | src/PositionCache.cxx | 3 | ||||
-rw-r--r-- | src/PositionCache.h | 6 | ||||
-rw-r--r-- | src/ScintillaBase.cxx | 3 |
4 files changed, 1 insertions, 14 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index acd5b3611..859ae180c 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -15,9 +15,6 @@ #include <string> #include <vector> #include <map> -#ifndef SCINTILLA_NO_UNORDERED_MAP -#include <unordered_map> -#endif #include <algorithm> #include <memory> diff --git a/src/PositionCache.cxx b/src/PositionCache.cxx index d92d49338..009ed7cfa 100644 --- a/src/PositionCache.cxx +++ b/src/PositionCache.cxx @@ -13,9 +13,6 @@ #include <string> #include <vector> #include <map> -#ifndef SCINTILLA_NO_UNORDERED_MAP -#include <unordered_map> -#endif #include "Platform.h" diff --git a/src/PositionCache.h b/src/PositionCache.h index bab43390a..10afbd972 100644 --- a/src/PositionCache.h +++ b/src/PositionCache.h @@ -120,15 +120,11 @@ public: } }; -#ifdef SCINTILLA_NO_UNORDERED_MAP typedef std::map<int, Representation> MapRepresentation; -#else -typedef std::unordered_map<int, Representation> MapRepresentation; -#endif class SpecialRepresentations { MapRepresentation mapReprs; - int startByteHasReprs[0x100]; + short startByteHasReprs[0x100]; public: SpecialRepresentations(); void SetRepresentation(const char *charBytes, const char *value); diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index 462d90ea4..05768799d 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -14,9 +14,6 @@ #include <string> #include <vector> #include <map> -#ifndef SCINTILLA_NO_UNORDERED_MAP -#include <unordered_map> -#endif #include <algorithm> #include "Platform.h" |