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

Unified Diff: printing/image_win.cc

Issue 1343593002: Cleanup code in printing/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 | « printing/image_mac.cc ('k') | printing/metafile.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/image_win.cc
diff --git a/printing/image_win.cc b/printing/image_win.cc
index 866625c433bbf00c9564d02b25f9e985717a67da..1411e160d9bf2ba3ea43190520400220d07c450d 100644
--- a/printing/image_win.cc
+++ b/printing/image_win.cc
@@ -23,7 +23,7 @@ namespace {
// destructor.
class DisableFontSmoothing {
public:
- explicit DisableFontSmoothing() : enable_again_(false) {
+ DisableFontSmoothing() : enable_again_(false) {
BOOL enabled;
if (SystemParametersInfo(SPI_GETFONTSMOOTHING, 0, &enabled, 0) &&
enabled) {
@@ -77,7 +77,7 @@ bool Image::LoadMetafile(const Metafile& metafile) {
bool success = metafile.Playback(hdc.Get(), NULL);
- row_length_ = size_.width() * sizeof(uint32);
+ row_length_ = size_.width() * sizeof(uint32_t);
size_t bytes = row_length_ * size_.height();
DCHECK(bytes);
« no previous file with comments | « printing/image_mac.cc ('k') | printing/metafile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698