Ignore:
Timestamp:
07/21/15 19:40:00 (10 years ago)
Author:
epyon
Message:
  • string.hh split into separate files
  • string.hh - removed std::string conversions (header still stays though)
File:
1 edited

Legend:

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

    r406 r433  
    5555        nv::map_area* map_area = nv::lua::detail::to_map_area( L, 3 );
    5656        lua_settop( L, 2 );
    57         std::string code = nv::trimmed( lua_tostring( L, 1 ) ).to_string();
     57        nv::string_view lts = nv::trimmed( lua_tostring( L, 1 ) );
     58        std::string code( lts.data(), lts.size() );
    5859        std::string chars( " \r\t" );
    5960        code.erase( nv::remove_if( code.begin(), code.end(),
Note: See TracChangeset for help on using the changeset viewer.