Log level/type: Use enum class instead of the awkward namespace trick.

Just a small cleanup I've wanted to do for a long time.
This commit is contained in:
Henrik Rydgård
2023-08-25 11:33:48 +02:00
parent 308e983a99
commit 1025bbcf89
19 changed files with 162 additions and 170 deletions

View File

@@ -202,10 +202,10 @@ int utimensat(int fd, const char *path, const struct timespec times[2]) {
void AndroidLogger::Log(const LogMessage &message) {
int mode;
switch (message.level) {
case LogTypes::LWARNING:
case LogLevel::LWARNING:
mode = ANDROID_LOG_WARN;
break;
case LogTypes::LERROR:
case LogLevel::LERROR:
mode = ANDROID_LOG_ERROR;
break;
default: