Codechange: Use std::map instead of custom SmallMap.
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#include "../../stdafx.h"
|
||||
#include "../../debug.h"
|
||||
#include "font_osx.h"
|
||||
#include "../../core/math_func.hpp"
|
||||
#include "../../blitter/factory.hpp"
|
||||
#include "../../error_func.h"
|
||||
#include "../../fileio_func.h"
|
||||
|
@@ -102,8 +102,7 @@ public:
|
||||
|
||||
/* Extract font information for this run. */
|
||||
CFRange chars = CTRunGetStringRange(run);
|
||||
auto map = fontMapping.begin();
|
||||
while (map < fontMapping.end() - 1 && map->first <= chars.location) map++;
|
||||
auto map = fontMapping.upper_bound(chars.location);
|
||||
|
||||
this->emplace_back(run, map->second, buff);
|
||||
}
|
||||
|
@@ -12,6 +12,7 @@
|
||||
#include "../../blitter/factory.hpp"
|
||||
#include "../../core/alloc_func.hpp"
|
||||
#include "../../core/math_func.hpp"
|
||||
#include "../../core/mem_func.hpp"
|
||||
#include "../../error_func.h"
|
||||
#include "../../fileio_func.h"
|
||||
#include "../../fontdetection.h"
|
||||
|
Reference in New Issue
Block a user