Pass strings by const reference where possible

This commit is contained in:
Lioncash
2015-05-28 20:28:48 -04:00
parent 6ff3fcee59
commit ac26f8e79f
21 changed files with 32 additions and 32 deletions

View File

@ -1908,7 +1908,7 @@ namespace GLExtensions
_GLVersion = 330; // Get all the fun things
}
static void* GetFuncAddress(std::string name, void **func)
static void* GetFuncAddress(const std::string& name, void **func)
{
*func = GLInterface->GetFuncAddress(name);
if (*func == nullptr)