diff options
author | Tobias Markmann <tm@ayena.de> | 2014-10-20 11:43:59 (GMT) |
---|---|---|
committer | Swift Review <review@swift.im> | 2014-10-20 20:36:44 (GMT) |
commit | ddebccbd59dd9cbd0c61efe55a09d74df8ec83c8 (patch) | |
tree | d7d139ad5225fa78617b64074644cddfa8a06b8c /Swift | |
parent | 6b22dfcf59474dd016a0355a3102a1dd3692d92c (diff) | |
download | swift-ddebccbd59dd9cbd0c61efe55a09d74df8ec83c8.zip swift-ddebccbd59dd9cbd0c61efe55a09d74df8ec83c8.tar.bz2 |
Change old C-style cast to static_cast.
Test-Information:
Before clang produced a warning about old C-style cast; not anymore.
Change-Id: I0f381ea0cd1a015cc1774dd1878aaa2736c66059
Diffstat (limited to 'Swift')
-rw-r--r-- | Swift/Controllers/Roster/RosterController.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/Controllers/Roster/RosterController.cpp b/Swift/Controllers/Roster/RosterController.cpp index 05376c9..99be985 100644 --- a/Swift/Controllers/Roster/RosterController.cpp +++ b/Swift/Controllers/Roster/RosterController.cpp @@ -93,7 +93,7 @@ RosterController::RosterController(const JID& jid, XMPPRoster* xmppRoster, Avata handleShowOfflineToggled(settings_->getSetting(SettingConstants::SHOW_OFFLINE)); - ownContact_ = boost::make_shared<ContactRosterItem>(myJID_.toBare(), myJID_.toBare(), nickManager_->getOwnNick(), (GroupRosterItem*)0); + ownContact_ = boost::make_shared<ContactRosterItem>(myJID_.toBare(), myJID_.toBare(), nickManager_->getOwnNick(), static_cast<GroupRosterItem*>(0)); ownContact_->setVCard(vcardManager_->getVCard(myJID_.toBare())); ownContact_->setAvatarPath(pathToString(avatarManager_->getAvatarPath(myJID_.toBare()))); mainWindow_->setMyContactRosterItem(ownContact_); |