diff options
Diffstat (limited to 'ui')
-rw-r--r-- | ui/gfx/codec/jpeg_codec_unittest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/gfx/codec/jpeg_codec_unittest.cc b/ui/gfx/codec/jpeg_codec_unittest.cc index ca8335f..7a8756a 100644 --- a/ui/gfx/codec/jpeg_codec_unittest.cc +++ b/ui/gfx/codec/jpeg_codec_unittest.cc @@ -76,7 +76,7 @@ static double AveragePixelDelta(const std::vector<unsigned char>& a, // if the sizes are different, say the average difference is the maximum if (a.size() != b.size()) return 255.0; - if (a.size() == 0) + if (a.empty()) return 0; // prevent divide by 0 below double acc = 0.0; |