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 | |
| 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.
| -rw-r--r-- | cocoa/ScintillaCocoa.h | 3 | ||||
| -rw-r--r-- | gtk/ScintillaGTK.cxx | 3 | ||||
| -rw-r--r-- | qt/ScintillaEditBase/ScintillaQt.h | 3 | ||||
| -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 | ||||
| -rw-r--r-- | win32/ScintillaWin.cxx | 3 | 
8 files changed, 1 insertions, 26 deletions
| diff --git a/cocoa/ScintillaCocoa.h b/cocoa/ScintillaCocoa.h index cddce4b5b..9b2c9fa1e 100644 --- a/cocoa/ScintillaCocoa.h +++ b/cocoa/ScintillaCocoa.h @@ -21,9 +21,6 @@  #include <vector>  #include <map> -#ifndef SCINTILLA_NO_UNORDERED_MAP -#include <unordered_map> -#endif  #include "ILexer.h" diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index dc8d91565..b02c7202d 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -14,9 +14,6 @@  #include <string>  #include <vector>  #include <map> -#ifndef SCINTILLA_NO_UNORDERED_MAP -#include <unordered_map> -#endif  #include <algorithm>  #include <gtk/gtk.h> diff --git a/qt/ScintillaEditBase/ScintillaQt.h b/qt/ScintillaEditBase/ScintillaQt.h index d9f2458c5..d3c5be594 100644 --- a/qt/ScintillaEditBase/ScintillaQt.h +++ b/qt/ScintillaEditBase/ScintillaQt.h @@ -19,9 +19,6 @@  #include <string>  #include <vector>  #include <map> -#ifndef SCINTILLA_NO_UNORDERED_MAP -#include <unordered_map> -#endif  #include <algorithm>  #include "Scintilla.h" 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" diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index 0509539fc..2386f1c48 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -16,9 +16,6 @@  #include <string>  #include <vector>  #include <map> -#ifndef SCINTILLA_NO_UNORDERED_MAP -#include <unordered_map> -#endif  #include <algorithm>  #undef _WIN32_WINNT | 
