Changeset 433 for trunk/src/engine


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)
Location:
trunk/src/engine
Files:
3 edited

Legend:

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

    r406 r433  
    435435                                        {
    436436                                                data.affector_count--;
    437                                                 NV_LOG_WARNING( "Bad data passed to ", sub_type, " affector in particle system!" );
     437                                                NV_LOG_WARNING( "Bad data passed to ", string_view( sub_type.c_str(), sub_type.size() ), " affector in particle system!" );
    438438                                        }
    439439                                }
     
    441441                                {
    442442                                        data.affector_count--;
    443                                         NV_LOG_WARNING( "Unknown affector type in particle system! (", sub_type, ")" );
     443                                        NV_LOG_WARNING( "Unknown affector type in particle system! (", string_view( sub_type.c_str(), sub_type.size() ), ")" );
    444444                                }
    445445                        }
  • trunk/src/engine/program_manager.cc

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

    r431 r433  
    1212{
    1313        m_lua = a_lua_state;
    14         lua::register_storage( m_lua, get_storage_name(), string_view( "register_" + get_resource_name().to_string() ) );
     14        std::string delete_me = "register_" + std::string( get_resource_name().data(), get_resource_name().size() );
     15        lua::register_storage( m_lua, get_storage_name(), string_view( delete_me.c_str(), delete_me.size() ) );
    1516}
    1617
Note: See TracChangeset for help on using the changeset viewer.