Skip to content
Permalink
Browse files
Merge pull request #11082 from AdmiralCurtiss/getstringt
 VolumeVerifier: Add missing assignment to summary_text, and prevent such errors in the future by adding [[nodiscard]] to GetStringT().
  • Loading branch information
JosJuice committed Sep 23, 2022
2 parents b314e2a + 9860b68 commit 3ee4c6a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
@@ -29,7 +29,7 @@ using StringTranslator = std::string (*)(const char* text);
void RegisterMsgAlertHandler(MsgAlertHandler handler);
void RegisterStringTranslator(StringTranslator translator);

std::string GetStringT(const char* string);
[[nodiscard]] std::string GetStringT(const char* string);

bool MsgAlertFmtImpl(bool yes_no, MsgType style, Common::Log::LogType log_type, const char* file,
int line, fmt::string_view format, const fmt::format_args& args);
@@ -1432,8 +1432,9 @@ void VolumeVerifier::Finish()
}
else
{
Common::GetStringT("Problems with low severity were found. They will most "
"likely not prevent the game from running.");
m_result.summary_text =
Common::GetStringT("Problems with low severity were found. They will most "
"likely not prevent the game from running.");
}
break;
case Severity::Medium:

0 comments on commit 3ee4c6a

Please sign in to comment.