1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

use string for const char*

This commit is contained in:
winlin 2015-10-13 16:42:49 +08:00
parent d9f991ed2f
commit 908365a61a
3 changed files with 20 additions and 20 deletions

View file

@ -1109,19 +1109,19 @@ int SrsHttpUri::initialize(string _url)
return ret;
}
const char* SrsHttpUri::get_url()
string SrsHttpUri::get_url()
{
return url.data();
return url;
}
const char* SrsHttpUri::get_schema()
string SrsHttpUri::get_schema()
{
return schema.data();
return schema;
}
const char* SrsHttpUri::get_host()
string SrsHttpUri::get_host()
{
return host.data();
return host;
}
int SrsHttpUri::get_port()
@ -1129,14 +1129,14 @@ int SrsHttpUri::get_port()
return port;
}
const char* SrsHttpUri::get_path()
string SrsHttpUri::get_path()
{
return path.data();
return path;
}
const char* SrsHttpUri::get_query()
string SrsHttpUri::get_query()
{
return query.data();
return query;
}
string SrsHttpUri::get_uri_field(string uri, http_parser_url* hp_u, http_parser_url_fields field)