help-motti
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-motti] patch


From: carl hansen
Subject: [Help-motti] patch
Date: Fri, 5 May 2017 00:53:02 -0700

*** work/motti-3.1.0/otti/GamePersistanceService.cpp    2014-03-28
13:22:07.000000000 -0700
--- worknew/motti-3.1.0/otti/GamePersistanceService.cpp 2017-05-03
23:24:00.783511716 -0700
***************
*** 155,161 ****
  std::string ListGames::internalDispatch(std::string msg,std::string session){
    std::vector<std::string> list=GamePersistanceService::loads();
    std::stringstream ss;
!   ss<"[";
    for (std::vector<std::string>::iterator it=list.begin();it!=list.end();it++)
    {
      std::cout<<*it<<std::endl;
--- 155,161 ----
  std::string ListGames::internalDispatch(std::string msg,std::string session){
    std::vector<std::string> list=GamePersistanceService::loads();
    std::stringstream ss;
!   ss<<"[";
    for (std::vector<std::string>::iterator it=list.begin();it!=list.end();it++)
    {
      std::cout<<*it<<std::endl;
***************
*** 163,169 ****
        ss<<",";
      ss<<*it;
    }
!   ss<"]";
    return ss.str();
  }

--- 163,169 ----
        ss<<",";
      ss<<*it;
    }
!   ss<<"]";
    return ss.str();
  }

***************
*** 171,184 ****
    std::string user=SessionService::retrieveUserFromSession(session);
    std::vector<std::string> list=GamePersistanceService::loads(user);
    std::stringstream ss;
!   ss<"[";
    for (std::vector<std::string>::iterator it=list.begin();it!=list.end();it++)
    {
      if (it!=list.begin())
        ss<<",";
      ss<<*it;
    }
!   ss<"]";
    return ss.str();
  }

--- 171,184 ----
    std::string user=SessionService::retrieveUserFromSession(session);
    std::vector<std::string> list=GamePersistanceService::loads(user);
    std::stringstream ss;
!   ss<<"[";
    for (std::vector<std::string>::iterator it=list.begin();it!=list.end();it++)
    {
      if (it!=list.begin())
        ss<<",";
      ss<<*it;
    }
!   ss<<"]";
    return ss.str();
  }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]