Changeset 380 for trunk/src/gui


Ignore:
Timestamp:
05/29/15 17:28:16 (10 years ago)
Author:
epyon
Message:
  • oops, missed src : got rid of to_string and other std::string utilities (except slurp) string no longer in nv namespace
Location:
trunk/src/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/gui_environment.cc

    r356 r380  
    311311}
    312312
    313 void nv::gui::environment::set_class( handle e, const string& text )
     313void nv::gui::environment::set_class( handle e, const std::string& text )
    314314{
    315315        element* ep = m_elements.get(e);
     
    321321}
    322322
    323 void nv::gui::environment::set_text( handle e, const string& text )
     323void nv::gui::environment::set_text( handle e, const std::string& text )
    324324{
    325325        element* ep = m_elements.get(e);
  • trunk/src/gui/gui_gfx_renderer.cc

    r378 r380  
    190190{
    191191        std::string id_name( filename );
    192         id_name.append( std::to_string( size ) );
     192        char buffer[8]; size_t len = nv::sint32_to_buffer( (sint32)size, buffer );
     193        id_name.append( std::string( buffer, len ) );
    193194        auto i = m_font_names.find( id_name );
    194195        if ( i != m_font_names.end() )
Note: See TracChangeset for help on using the changeset viewer.