diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-10-25 19:29:08 +0100 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-10-25 19:29:08 +0100 |
| commit | 0ca5d2843e48169e58978439f9f6bc60c579efce (patch) | |
| tree | 40ec44a1bb8a224df6fa11fc92385025ccf7d561 /src/modlist.cpp | |
| parent | 551e8353e090040ee337e718cf0f1b9fe31a0423 (diff) | |
Use static_cast instead of dynamic_cast.
Diffstat (limited to 'src/modlist.cpp')
| -rw-r--r-- | src/modlist.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modlist.cpp b/src/modlist.cpp index 98ee3f3a..f4c034dc 100644 --- a/src/modlist.cpp +++ b/src/modlist.cpp @@ -934,8 +934,7 @@ QStringList ModList::allMods() const QStringList ModList::allModsByProfilePriority(MOBase::IProfile* profile) const { Profile* mo2Profile = profile == nullptr ? - m_Organizer->currentProfile() - : dynamic_cast<Profile*>(profile); + m_Organizer->currentProfile() : static_cast<Profile*>(profile); return m_Organizer->modsSortedByProfilePriority(mo2Profile); } |
