mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
C++11 patchset 2: remove util/cpp11.h and util/cpp11_container.h (#5821)
This commit is contained in:
parent
2362d3f926
commit
a98baef5e4
59 changed files with 223 additions and 298 deletions
|
@ -23,12 +23,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include "irrlichttypes.h"
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
#include "util/cpp11_container.h"
|
||||
#include "itemgroup.h"
|
||||
|
||||
struct ToolGroupCap
|
||||
{
|
||||
UNORDERED_MAP<int, float> times;
|
||||
std::unordered_map<int, float> times;
|
||||
int maxlevel;
|
||||
int uses;
|
||||
|
||||
|
@ -39,7 +38,7 @@ struct ToolGroupCap
|
|||
|
||||
bool getTime(int rating, float *time) const
|
||||
{
|
||||
UNORDERED_MAP<int, float>::const_iterator i = times.find(rating);
|
||||
std::unordered_map<int, float>::const_iterator i = times.find(rating);
|
||||
if (i == times.end()) {
|
||||
*time = 0;
|
||||
return false;
|
||||
|
@ -50,8 +49,8 @@ struct ToolGroupCap
|
|||
};
|
||||
|
||||
|
||||
typedef UNORDERED_MAP<std::string, struct ToolGroupCap> ToolGCMap;
|
||||
typedef UNORDERED_MAP<std::string, s16> DamageGroup;
|
||||
typedef std::unordered_map<std::string, struct ToolGroupCap> ToolGCMap;
|
||||
typedef std::unordered_map<std::string, s16> DamageGroup;
|
||||
|
||||
struct ToolCapabilities
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue