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

Unified Diff: media/audio/cras/cras_input.cc

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/audio/audio_output_device.cc ('k') | media/base/audio_bus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/cras/cras_input.cc
diff --git a/media/audio/cras/cras_input.cc b/media/audio/cras/cras_input.cc
index 4ee00f3fe5a265b997d41f6136754c6ffb23e605..31bba72b4a7ab4dd0ee0b2f8652d19a73412008d 100644
--- a/media/audio/cras/cras_input.cc
+++ b/media/audio/cras/cras_input.cc
@@ -117,8 +117,8 @@ void CrasInputStream::Start(AudioInputCallback* callback) {
CRAS_CH_SL,
CRAS_CH_SR
};
- COMPILE_ASSERT(arraysize(kChannelMap) == CHANNELS_MAX + 1,
- channel_map_size_do_not_match);
+ static_assert(arraysize(kChannelMap) == CHANNELS_MAX + 1,
+ "kChannelMap array size should match");
// If already playing, stop before re-starting.
if (started_)
« no previous file with comments | « media/audio/audio_output_device.cc ('k') | media/base/audio_bus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698