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

Unified Diff: content/common/indexed_db/indexed_db_param_traits.cc

Issue 202863004: Fix "unreachable code" warnings (MSVC warning 4702) in content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 9 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 | « content/common/indexed_db/indexed_db_key.cc ('k') | content/common/page_state_serialization_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/indexed_db/indexed_db_param_traits.cc
===================================================================
--- content/common/indexed_db/indexed_db_param_traits.cc (revision 257821)
+++ content/common/indexed_db/indexed_db_param_traits.cc (working copy)
@@ -105,8 +105,6 @@
NOTREACHED();
return false;
}
- NOTREACHED();
- return false;
}
void ParamTraits<IndexedDBKey>::Log(const param_type& p, std::string* l) {
@@ -143,8 +141,10 @@
return;
case WebIDBKeyPathTypeNull:
return;
+ default:
+ NOTREACHED();
+ return;
}
- NOTREACHED();
}
bool ParamTraits<IndexedDBKeyPath>::Read(const Message* m,
@@ -172,9 +172,10 @@
case WebIDBKeyPathTypeNull:
*r = IndexedDBKeyPath();
return true;
+ default:
+ NOTREACHED();
+ return false;
}
- NOTREACHED();
- return false;
}
void ParamTraits<IndexedDBKeyPath>::Log(const param_type& p, std::string* l) {
« no previous file with comments | « content/common/indexed_db/indexed_db_key.cc ('k') | content/common/page_state_serialization_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698