Add Q_UNREACHABLE() after switch statements in UserStatus.

Signed-off-by: Camila <hello@camila.codes>
This commit is contained in:
Camila 2021-05-17 17:10:12 +02:00 committed by Camila (Rebase PR Action)
parent 73da14040b
commit 2caa9ccfc6

View file

@ -56,9 +56,11 @@ namespace {
case UserStatus::Status::Invisible:
case UserStatus::Status::Offline:
return QObject::tr("Offline");
default:
case UserStatus::Status::Online:
return QObject::tr("Online");
}
Q_UNREACHABLE();
}
}
@ -131,9 +133,11 @@ QUrl UserStatus::icon() const
case Status::Invisible:
case Status::Offline:
return Theme::instance()->statusInvisibleImageSource();
default:
case Status::Online:
return Theme::instance()->statusOnlineImageSource();
}
Q_UNREACHABLE();
}
} // namespace OCC