diff options
author | Attila Molnar <attilamolnar@hush.com> | 2015-01-18 10:44:02 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2015-01-18 10:44:02 +0100 |
commit | 1b957ed3a9d79a0cbc71e79acca82d893b40f8ac (patch) | |
tree | e4c6741ddffbcf38dc02c640ca7c0b03e4812bf3 /src | |
parent | 9e64fb83aab4f4c0c6964fcdbef4bca0846e930a (diff) |
m_services_account Replace dynamic_cast with static_cast as we know the object is a User
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_services_account.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules/m_services_account.cpp b/src/modules/m_services_account.cpp index b778c16ed..aac0b9ce0 100644 --- a/src/modules/m_services_account.cpp +++ b/src/modules/m_services_account.cpp @@ -112,9 +112,7 @@ class AccountExtItemImpl : public AccountExtItem void unserialize(SerializeFormat format, Extensible* container, const std::string& value) { - User* user = dynamic_cast<User*>(container); - if (!user) - return; + User* user = static_cast<User*>(container); StringExtItem::unserialize(format, container, value); if (!value.empty()) |