make stringbuilding use StringHelper instead of addition

This commit is contained in:
Jeffrey Crowell 2022-07-04 22:20:45 -04:00
parent 56718c47a8
commit bce7ecf118

View File

@ -349,7 +349,7 @@ std::string ZResource::GetSourceOutputHeader([[maybe_unused]] const std::string&
str += StringHelper::Sprintf("#define d%s \"__OTR__%s/%s\"", name.c_str(), outName.c_str(), nameStr.c_str());
if (myset.find(name) == myset.end()) {
str += "\nstatic volatile const char " + name + "[]__attribute__ ((aligned (16))) = d" + name + ";";
str += StringHelper::Sprintf("\nstatic volatile const char %s[] __attribute__((aligned (2))) = d%s;", name.c_str(), name.c_str());
myset.insert(name);
}