session boost_ptr refactoring

This commit is contained in:
doitux committed 2008-10-07 21:16:27 +00:00
1 parent 13cc3d5aeb
commit de6228bb7d
18 files changed
+138 -144

No files matched your search

+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;}