Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 7, 2015, 5:24:58 PM (9 years ago)
Author:
landauf
Message:

using std::shared_ptr instead of boost::shared_ptr (same for weak_ptr)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v2/src/libraries/core/Loader.cc

    r10769 r10771  
    7373        std::string xmlInput;
    7474
    75         shared_ptr<std::vector<std::vector<std::pair<std::string, size_t>>>> lineTrace(new std::vector<std::vector<std::pair<std::string, size_t>>>());
     75        std::shared_ptr<std::vector<std::vector<std::pair<std::string, size_t>>>> lineTrace(new std::vector<std::vector<std::pair<std::string, size_t>>>());
    7676        lineTrace->reserve(1000); //arbitrary number
    7777
     
    8080        {
    8181            // Use the LuaState to replace the XML tags (calls our function)
    82             scoped_ptr<LuaState> luaState(new LuaState());
     82            boost::scoped_ptr<LuaState> luaState(new LuaState());
    8383            luaState->setTraceMap(lineTrace);
    8484            luaState->setIncludeParser(&Loader::replaceLuaTags);
     
    8888        else
    8989        {
    90             shared_ptr<ResourceInfo> info = Resource::getInfo(file->getFilename());
     90            std::shared_ptr<ResourceInfo> info = Resource::getInfo(file->getFilename());
    9191            if (info == nullptr)
    9292            {
Note: See TracChangeset for help on using the changeset viewer.