diff options
author | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-03 15:01:12 +0000 |
---|---|---|
committer | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-03 15:01:12 +0000 |
commit | 52a261f59b20e89f8c5936bce642362f8e367b57 (patch) | |
tree | fcc7b3c100caaf43848cd9a241beafc883f93b7d /base/gfx/png_encoder.cc | |
parent | 7d926f9072ac496db6df715cc6a6bd5d3f9bd011 (diff) | |
download | chromium_src-52a261f59b20e89f8c5936bce642362f8e367b57.zip chromium_src-52a261f59b20e89f8c5936bce642362f8e367b57.tar.gz chromium_src-52a261f59b20e89f8c5936bce642362f8e367b57.tar.bz2 |
NO CODE CHANGE (except one global std::wstring changed to const wchar_t* const per style compliance).
Preliminary work to enforce new PRESUBMIT.py rules:
- <=80 cols
- no trailing whitespaces
- svn:eol-style=LF
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10791 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/gfx/png_encoder.cc')
-rwxr-xr-x | base/gfx/png_encoder.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/base/gfx/png_encoder.cc b/base/gfx/png_encoder.cc index b47db42..2130770 100755 --- a/base/gfx/png_encoder.cc +++ b/base/gfx/png_encoder.cc @@ -177,7 +177,8 @@ bool PNGEncoder::Encode(const unsigned char* input, ColorFormat format, if (!converter) { // No conversion needed, give the data directly to libpng. for (int y = 0; y < h; y ++) - png_write_row(png_ptr, const_cast<unsigned char*>(&input[y * row_byte_width])); + png_write_row(png_ptr, + const_cast<unsigned char*>(&input[y * row_byte_width])); } else { // Needs conversion using a separate buffer. unsigned char* row = new unsigned char[w * output_color_components]; |