commit | 4c7068538209b9f14bd5ddc0050beb9296d6e09d | [log] [tgz] |
---|---|---|
author | John Kessenich <cepheus@frii.com> | Fri Oct 11 16:28:43 2013 +0000 |
committer | John Kessenich <cepheus@frii.com> | Fri Oct 11 16:28:43 2013 +0000 |
tree | 9c047a2fb5c982ccf0a5030e9c89bdce540bfa2c | |
parent | 3afe67dcc29197cfaf43979d33839a7ff05ec48b [diff] |
Memory management hygiene: Use compare() instead of substr(), and put a few more things intrinsically in the memory pool. git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@23467 e7fa87d3-cd2b-0410-9028-fcbf551c1848
diff --git a/StandAlone/StandAlone.cpp b/StandAlone/StandAlone.cpp index 6cc2a73..db9428e 100644 --- a/StandAlone/StandAlone.cpp +++ b/StandAlone/StandAlone.cpp
@@ -254,7 +254,7 @@ if (name.size() < 5) return false; - if (name.substr(name.size() - 5, std::string::npos) == ".conf") { + if (name.compare(name.size() - 5, 5, ".conf") == 0) { ConfigFile = name; return true; }