Fix msvc compile error
This commit is contained in:
parent
c8960d1358
commit
58a3411255
@ -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")
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user