Ignore:
Timestamp:
07/24/15 11:13:32 (10 years ago)
Author:
epyon
Message:
  • md5 support moved to legacy code
  • more std::string removal
  • minor fixes in algorithm
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lua/lua_map_tile.cc

    r440 r441  
    1717#include "nv/lua/lua_raw.hh"
    1818
    19 // TODO: REMOVE
    20 #include <string>
    21 
    2219static const char* NLUA_MAP_TILE_METATABLE = "map_tile";
    2320
     
    5855        nv::map_area* map_area = nv::lua::detail::to_map_area( L, 3 );
    5956        lua_settop( L, 2 );
    60         nv::string_view lts = nv::trimmed( lua_tostring( L, 1 ) );
    61         std::string code( lts.data(), lts.size() );
    62         std::string chars( " \r\t" );
     57        nv::string_buffer code( nv::trimmed( lua_tostring( L, 1 ) ) );
     58        nv::string_view chars( " \r\t" );
    6359        code.erase( nv::remove_if( code.begin(), code.end(),
    6460                [&chars] ( const char& c )
    6561        {
    66                 return chars.find( c ) != std::string::npos;
     62                return chars.find( c ) != nv::string_view::npos;
    6763        } ), code.end() );
    6864
Note: See TracChangeset for help on using the changeset viewer.