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

Unified Diff: ui/base/win/open_file_name_win_unittest.cc

Issue 2126433002: Use container::back() and container::pop_back() in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pre-increment 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 | « ui/base/ime/win/imm32_manager.cc ('k') | ui/compositor/layer_animator_collection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/win/open_file_name_win_unittest.cc
diff --git a/ui/base/win/open_file_name_win_unittest.cc b/ui/base/win/open_file_name_win_unittest.cc
index bce8abcfa729495462a5fb67ab49c06f73e6264f..a6e6ff1f8fbd92d9d5f5e072a2c4458ef071d8fc 100644
--- a/ui/base/win/open_file_name_win_unittest.cc
+++ b/ui/base/win/open_file_name_win_unittest.cc
@@ -19,7 +19,7 @@ void SetResult(const base::string16& result, ui::win::OpenFileName* ofn) {
ADD_FAILURE() << "filename buffer insufficient.";
return;
}
- if (!result.size()) {
+ if (result.empty()) {
ofn->GetOPENFILENAME()->lpstrFile[0] = 0;
} else {
// Because the result has embedded nulls, we must memcpy.
« no previous file with comments | « ui/base/ime/win/imm32_manager.cc ('k') | ui/compositor/layer_animator_collection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698