Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Unified Diff: gpu/command_buffer/client/program_info_manager.cc

Issue 2070283002: Use container::back() and container::pop_back(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « google_apis/gaia/fake_gaia.cc ('k') | gpu/command_buffer/common/gles2_cmd_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/program_info_manager.cc
diff --git a/gpu/command_buffer/client/program_info_manager.cc b/gpu/command_buffer/client/program_info_manager.cc
index 106e069c3be31fbb160a242aae2c2ad8482b482f..d16251dbde3bd6f0aa5e1ef4c3460ef6e5a77250 100644
--- a/gpu/command_buffer/client/program_info_manager.cc
+++ b/gpu/command_buffer/client/program_info_manager.cc
@@ -21,7 +21,7 @@ static T LocalGetAs(const std::vector<int8_t>& data,
return static_cast<T>(static_cast<const void*>(p));
}
-} // namespace anonymous
+} // namespace
namespace gpu {
namespace gles2 {
@@ -42,7 +42,7 @@ ProgramInfoManager::Program::UniformInfo::UniformInfo(
: size(_size),
type(_type),
name(_name) {
- is_array = (!name.empty() && name[name.size() - 1] == ']');
+ is_array = (!name.empty() && name.back() == ']');
DCHECK(!(size > 1 && !is_array));
}
« no previous file with comments | « google_apis/gaia/fake_gaia.cc ('k') | gpu/command_buffer/common/gles2_cmd_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698