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

Unified Diff: gpu/config/gpu_control_list.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 | « gpu/command_buffer/service/program_manager.cc ('k') | gpu/perftests/texture_upload_perftest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/config/gpu_control_list.cc
diff --git a/gpu/config/gpu_control_list.cc b/gpu/config/gpu_control_list.cc
index 5561d32fa6c0d084435937cb522b0cbf02deb51c..752003fe093d19d9e861f2b9a5427a2c3684e97f 100644
--- a/gpu/config/gpu_control_list.cc
+++ b/gpu/config/gpu_control_list.cc
@@ -38,7 +38,7 @@ bool ProcessVersionString(const std::string& version_string,
// If the splitter is '-', we assume it's a date with format "mm-dd-yyyy";
// we split it into the order of "yyyy", "mm", "dd".
if (splitter == '-') {
- std::string year = (*version)[version->size() - 1];
+ std::string year = version->back();
for (int i = version->size() - 1; i > 0; --i) {
(*version)[i] = (*version)[i - 1];
}
@@ -125,7 +125,7 @@ const char kVersionStyleStringLexical[] = "lexical";
const char kOp[] = "op";
-} // namespace anonymous
+} // namespace
GpuControlList::VersionInfo::VersionInfo(
const std::string& version_op,
« no previous file with comments | « gpu/command_buffer/service/program_manager.cc ('k') | gpu/perftests/texture_upload_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698