mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 06:55:59 +03:00
Add Q_UNREACHABLE() after switch statements in UserStatus.
Signed-off-by: Camila <hello@camila.codes>
This commit is contained in:
parent
73da14040b
commit
2caa9ccfc6
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue