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:
@@ -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 != ' ')
|
||||
|
||||
Reference in New Issue
Block a user