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 | c570c7c6fb1abc780510efd5eee6c3a9131a54e4 (patch) | |
tree | 817ff2215fa00425d00e6a81fcbd00442c2d09ac /src | |
parent | 199d7ee000fcb1ce24d3f4a919dc825e6c0d2f45 (diff) | |
download | scintilla-mirror-c570c7c6fb1abc780510efd5eee6c3a9131a54e4.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" |