Fix msvc compile error

This commit is contained in:
jacob1 2019-03-31 16:42:21 -04:00
parent c8960d1358
commit 58a3411255

View File

@ -116,11 +116,11 @@ String sign::getText(Simulation *sim)
} }
else if (between_curlies == "type") else if (between_curlies == "type")
{ {
formatted_text << (part ? sim->BasicParticleInfo(*part) : (formatted_text.Size() ? "empty" : "Empty")); formatted_text << (part ? sim->BasicParticleInfo(*part) : (formatted_text.Size() ? String::Build("empty") : String::Build("Empty")));
} }
else if (between_curlies == "ctype") else if (between_curlies == "ctype")
{ {
formatted_text << ((part && part->ctype && sim->IsValidElement(part->ctype)) ? sim->ElementResolve(part->ctype, -1) : (formatted_text.Size() ? "empty" : "Empty")); formatted_text << ((part && part->ctype && sim->IsValidElement(part->ctype)) ? sim->ElementResolve(part->ctype, -1) : (formatted_text.Size() ? String::Build("empty") : String::Build("Empty")));
} }
else if (between_curlies == "life") else if (between_curlies == "life")
{ {