mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
create a specific esm reader function for RefID to avoid allocation for string and then again for RefId
Fixed some types removed useless header applied clang format fixed compile tests fixed clang tidy, and closer to logic before this MR Removed hardcoded refids unless there is a returned value we don't use static RefIds can use == between RefId and hardcoded string Fix clang format Fixed a few instances where std::string was used, when only const std::string& was needed removed unused variable
This commit is contained in:
parent
874ff88288
commit
65cdd489fb
194 changed files with 814 additions and 700 deletions
|
@ -7,8 +7,8 @@
|
|||
#include <stack>
|
||||
#include <stdexcept>
|
||||
|
||||
#include <components/misc/strings/lower.hpp>
|
||||
#include <components/esm/refid.hpp>
|
||||
#include <components/misc/strings/lower.hpp>
|
||||
|
||||
#include "context.hpp"
|
||||
#include "discardparser.hpp"
|
||||
|
@ -303,7 +303,6 @@ namespace Compiler
|
|||
{
|
||||
start();
|
||||
|
||||
|
||||
char type = mLocals.getType(name);
|
||||
|
||||
if (type != ' ')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue