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

Unified Diff: chrome/browser/sessions/session_backend.cc

Issue 368133005: Fixes for re-enabling more MSVC level 4 warnings: chrome/browser/ edition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review comment Created 6 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
Index: chrome/browser/sessions/session_backend.cc
diff --git a/chrome/browser/sessions/session_backend.cc b/chrome/browser/sessions/session_backend.cc
index 9c214c80b886162b4c155d4fdd9ab6f029df1c90..350ab19bf2f04f4fa194e1650635e1748aec0243 100644
--- a/chrome/browser/sessions/session_backend.cc
+++ b/chrome/browser/sessions/session_backend.cc
@@ -99,8 +99,8 @@ bool SessionFileReader::Read(BaseSessionService::SessionType type,
return false;
ScopedVector<SessionCommand> read_commands;
- SessionCommand* command;
- while ((command = ReadCommand()) && !errored_)
+ for (SessionCommand* command = ReadCommand(); command && !errored_;
+ command = ReadCommand())
read_commands.push_back(command);
if (!errored_)
read_commands.swap(*commands);
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_store_file.cc ('k') | chrome/browser/spellchecker/spellcheck_host_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698