Changeset 399 for trunk/src/engine


Ignore:
Timestamp:
06/13/15 11:47:09 (10 years ago)
Author:
epyon
Message:
  • naming cleanup
  • string_ref -> string_view (compatible with C++17 standard!)
  • *_ref and const_*_ref, renamed to _ref and _view for consistency
Location:
trunk/src/engine
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/engine/program_manager.cc

    r395 r399  
    3737        }
    3838
    39         nv::program program = m_context->get_device()->create_program( string_ref( vsource ), string_ref( fsource ) );
     39        nv::program program = m_context->get_device()->create_program( string_view( vsource ), string_view( fsource ) );
    4040        return add( program );
    4141}
  • trunk/src/engine/resource_system.cc

    r395 r399  
    1212{
    1313        m_lua = a_lua_state;
    14         lua::register_storage( m_lua, get_storage_name(), string_ref( "register_" + get_resource_name().to_string() ) );
     14        lua::register_storage( m_lua, get_storage_name(), string_view( "register_" + get_resource_name().to_string() ) );
    1515}
    1616
Note: See TracChangeset for help on using the changeset viewer.