diff options
Diffstat (limited to 'Swift/Controllers/Chat/ChatController.cpp')
| -rw-r--r-- | Swift/Controllers/Chat/ChatController.cpp | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/Swift/Controllers/Chat/ChatController.cpp b/Swift/Controllers/Chat/ChatController.cpp index ea0e8ea..610c8e8 100644 --- a/Swift/Controllers/Chat/ChatController.cpp +++ b/Swift/Controllers/Chat/ChatController.cpp @@ -7,6 +7,7 @@  #include "Swift/Controllers/Chat/ChatController.h"  #include <boost/bind.hpp> +#include <boost/smart_ptr/make_shared.hpp>  #include <stdio.h>  #include <Swift/Controllers/Intl.h> @@ -321,7 +322,7 @@ void ChatController::handlePresenceChange(boost::shared_ptr<Presence> newPresenc  		return;  	}  	if (!newPresence) { -		newPresence = boost::shared_ptr<Presence>(new Presence()); +		newPresence = boost::make_shared<Presence>();  		newPresence->setType(Presence::Unavailable);  	}  	lastShownStatus_ = newPresence->getShow(); | 
 Swift
 Swift