session boost_ptr refactoring

This commit is contained in:
doitux
2008-10-07 21:16:27 +00:00
parent 13cc3d5aeb
commit de6228bb7d
18 changed files with 138 additions and 144 deletions
+2 -2
View File
@@ -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)
+1 -1
View File
@@ -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;}