Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10777


Ignore:
Timestamp:
Nov 8, 2015, 11:16:22 AM (9 years ago)
Author:
landauf
Message:

replacing boost::scoped_ptr/array with 'const std::unique_ptr'

Location:
code/branches/cpp11_v2/src/libraries
Files:
2 edited

Legend:

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

    r10772 r10777  
    3131#include <sstream>
    3232#include <tinyxml/ticpp.h>
    33 #include <boost/scoped_ptr.hpp>
    3433#include <boost/filesystem.hpp>
    3534#include <boost/filesystem/fstream.hpp>
     
    8079        {
    8180            // Use the LuaState to replace the XML tags (calls our function)
    82             boost::scoped_ptr<LuaState> luaState(new LuaState());
     81            const std::unique_ptr<LuaState> luaState(new LuaState());
    8382            luaState->setTraceMap(lineTrace);
    8483            luaState->setIncludeParser(&Loader::replaceLuaTags);
  • code/branches/cpp11_v2/src/libraries/util/StringUtils.cc

    r9550 r10777  
    3636#include <cctype>
    3737#include <ctime>
    38 #include <boost/scoped_array.hpp>
    3938#include "Convert.h"
    4039#include "Math.h"
     
    482481        size_t cols = str1.size() + 1;
    483482        size_t rows = str2.size() + 1;
    484         boost::scoped_array<int> matrix(new int[rows * cols]);
     483        const std::unique_ptr<int[]> matrix(new int[rows * cols]);
    485484
    486485        for (size_t r = 0; r < rows; ++r)
Note: See TracChangeset for help on using the changeset viewer.