session boost_ptr refactoring
This commit is contained in:
@@ -35,10 +35,10 @@ ServerGuiWrapper::~ServerGuiWrapper()
|
||||
|
||||
void ServerGuiWrapper::initGui(int /*speed*/) {}
|
||||
|
||||
Session &ServerGuiWrapper::getSession()
|
||||
boost::shared_ptr<Session> ServerGuiWrapper::getSession()
|
||||
{
|
||||
assert(mySession.get());
|
||||
return *mySession;
|
||||
return mySession;
|
||||
}
|
||||
|
||||
void ServerGuiWrapper::setSession(boost::shared_ptr<Session> session)
|
||||
|
||||
@@ -33,7 +33,7 @@ public:
|
||||
|
||||
void initGui(int speed);
|
||||
|
||||
Session &getSession();
|
||||
boost::shared_ptr<Session> getSession();
|
||||
void setSession(boost::shared_ptr<Session> session);
|
||||
|
||||
gameTableImpl* getMyW() const {return NULL;}
|
||||
|
||||
Reference in New Issue
Block a user