StringFormat converted to move semantics

This commit is contained in:
Arthur Ice
2014-07-08 18:57:54 -07:00
committed by Arthur Ice
parent 9a634a2056
commit 6a59b83d43
6 changed files with 27 additions and 36 deletions
+1 -3
View File
@@ -33,9 +33,7 @@ void log_message(LogType type, const char *fmt, ...) {
}
void log_messageVA(LogType type, const char *fmt, va_list args) {
std::string prefix_buffer;
StringFormat(prefix_buffer, "[%s] ", log_type_info[type].name);
std::string prefix_buffer = StringFormat("[%s] ", log_type_info[type].name);
LogFile->writePVA(EQEMuLog::Debug, prefix_buffer.c_str(), fmt, args);
}