summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-01-18 10:44:02 +0100
committerAttila Molnar <attilamolnar@hush.com>2015-01-18 10:44:02 +0100
commit1b957ed3a9d79a0cbc71e79acca82d893b40f8ac (patch)
treee4c6741ddffbcf38dc02c640ca7c0b03e4812bf3
parent9e64fb83aab4f4c0c6964fcdbef4bca0846e930a (diff)
m_services_account Replace dynamic_cast with static_cast as we know the object is a User
-rw-r--r--src/modules/m_services_account.cpp4
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())