Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion contrib/vcpkg
Submodule vcpkg updated 1672 files
8 changes: 4 additions & 4 deletions src/tinyui.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ SOFTWARE.
#include <vector>
#include <list>
#include <string>
#include <map>
#include <unordered_map>

#include "stb_image.h"

Expand Down Expand Up @@ -136,7 +136,7 @@ struct Image {
};

/// @brief The image cache.
using ImageCache = std::map<const char*, Image*>;
using ImageCache = std::unordered_map<const char*, Image*>;

/// @brief A 2-dimensional vector
/// @tparam T The pod template type
Expand Down Expand Up @@ -281,7 +281,7 @@ struct Font {
};

/// @brief The font cache.
using FontCache = std::map<const char*, Font*>;
using FontCache = std::unordered_map<const char*, Font*>;

/// @brief The style struct.
///
Expand Down Expand Up @@ -403,7 +403,7 @@ struct CallbackI {
using EventCallbackArray = std::vector<CallbackI*>;

/// @brief The event dispatch map.
using EventDispatchMap = std::map<int32_t, EventCallbackArray>;
using EventDispatchMap = std::unordered_map<int32_t, EventCallbackArray>;

/// @brief Function pointer declaration for callbacks.
typedef void (*tui_log_func) (LogSeverity severity, const char *message);
Expand Down
Loading