mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-27 12:51:42 +00:00
remove usage of temporaries
This commit is contained in:
parent
7e8d5c4496
commit
59ed08b924
2 changed files with 4 additions and 6 deletions
|
|
@ -682,7 +682,7 @@ void DrawRubyAnnotatedText(const ImFont* font, float fontSize, float maxWidth, c
|
||||||
line = ReAddRubyAnnotations(line, input.second);
|
line = ReAddRubyAnnotations(line, input.second);
|
||||||
if (!line.empty() && line.substr(0, 3) != "「" && leadingSpace)
|
if (!line.empty() && line.substr(0, 3) != "「" && leadingSpace)
|
||||||
{
|
{
|
||||||
line = " " + line;
|
line.insert(0, " ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -741,12 +741,10 @@ static void DrawDescriptionContainer()
|
||||||
// special characters.
|
// special characters.
|
||||||
if (Config::Language == ELanguage::Japanese)
|
if (Config::Language == ELanguage::Japanese)
|
||||||
{
|
{
|
||||||
strncat(descriptionText, std::string(" " + g_installerErrorMessage).c_str(), sizeof(descriptionText) - 1);
|
strncat(descriptionText, " ", 1);
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
strncat(descriptionText, g_installerErrorMessage.c_str(), sizeof(descriptionText) - 1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
strncat(descriptionText, g_installerErrorMessage.c_str(), sizeof(descriptionText) - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
double textAlpha = ComputeMotionInstaller(g_appearTime, g_disappearTime, CONTAINER_INNER_TIME, CONTAINER_INNER_DURATION);
|
double textAlpha = ComputeMotionInstaller(g_appearTime, g_disappearTime, CONTAINER_INNER_TIME, CONTAINER_INNER_DURATION);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue