Apply review changes

- Print warning/error code in log message
- Remove attribute from Object::SetSourceGame which has a FIXME comment already instead
This commit is contained in:
Hielke Morsink authored and Michał Janiszewski committed 2018-06-06 21:03:11 +02:00
1 parent 204dd4439b
commit 8c1ed596ce
2 files changed
+5 -5

No files matched your search

+4 -4
View File
@@ -129,23 +129,23 @@ public:
return {};
}
void LogWarning([[maybe_unused]] uint32 code, const utf8* text) override
void LogWarning(uint32 code, const utf8* text) override
{
_wasWarning = true;
if (!String::IsNullOrEmpty(text))
{
Console::Error::WriteLine("[%s] Warning: %s", _objectName.c_str(), text);
Console::Error::WriteLine("[%s] Warning (%d): %s", _objectName.c_str(), code, text);
}
}
void LogError([[maybe_unused]] uint32 code, const utf8* text) override
void LogError(uint32 code, const utf8* text) override
{
_wasError = true;
if (!String::IsNullOrEmpty(text))
{
Console::Error::WriteLine("[%s] Error: %s", _objectName.c_str(), text);
Console::Error::WriteLine("[%s] Error (%d): %s", _objectName.c_str(), code, text);
}
}
};