aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PositionCache.h
diff options
context:
space:
mode:
authornyamatongwe <nyamatongwe@gmail.com>2013-07-23 11:13:57 +1000
committernyamatongwe <nyamatongwe@gmail.com>2013-07-23 11:13:57 +1000
commit1e60a227ca7eb081b7eb02b0aef9bbb8705733dc (patch)
tree6d09443e7758fcee5a9aa721eeb59811311bc278 /src/PositionCache.h
parent5cbf336f95db427027a72699be6f5034762515aa (diff)
downloadscintilla-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/PositionCache.h')
-rw-r--r--src/PositionCache.h6
1 files changed, 1 insertions, 5 deletions
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);