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

Unified Diff: chrome/utility/cloud_print/pwg_encoder.cc

Issue 241943003: Fix "unreachable code" warning (MSVC warning 4702) in (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/cloud_print/pwg_encoder.cc
===================================================================
--- chrome/utility/cloud_print/pwg_encoder.cc (revision 264665)
+++ chrome/utility/cloud_print/pwg_encoder.cc (working copy)
@@ -202,16 +202,14 @@
switch (image.colorspace()) {
case BitmapImage::RGBA:
return EncodePageWithColorspace<RGBA8>(image, pwg_header_info, output);
- break;
+
case BitmapImage::BGRA:
return EncodePageWithColorspace<BGRA8>(image, pwg_header_info, output);
- break;
+
default:
LOG(ERROR) << "Unsupported colorspace.";
return false;
}
-
- EncodePageHeader(image, pwg_header_info, output);
}
template <typename InputStruct>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698