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

Unified Diff: media/filters/h264_bitstream_buffer.h

Issue 826953002: replace COMPILE_ASSERT with static_assert in media/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 5 years, 11 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 | « media/filters/fake_demuxer_stream_unittest.cc ('k') | media/filters/h264_parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/h264_bitstream_buffer.h
diff --git a/media/filters/h264_bitstream_buffer.h b/media/filters/h264_bitstream_buffer.h
index 4b0511d9bcdd493203259cefc7c219e1066ece2a..cbe2047452b7109a27226e21331cad1fb8594b44 100644
--- a/media/filters/h264_bitstream_buffer.h
+++ b/media/filters/h264_bitstream_buffer.h
@@ -94,8 +94,8 @@ class MEDIA_EXPORT H264BitstreamBuffer {
kGrowBytes = 4096,
};
- COMPILE_ASSERT(kGrowBytes >= kRegByteSize,
- kGrowBytes_must_be_larger_than_kRegByteSize);
+ static_assert(kGrowBytes >= kRegByteSize,
+ "kGrowBytes must be larger than kRegByteSize");
// Unused bits left in reg_.
size_t bits_left_in_reg_;
« no previous file with comments | « media/filters/fake_demuxer_stream_unittest.cc ('k') | media/filters/h264_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698