From 12dc274749912f5e82545819697cc026c4cff391 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20=C3=85hgren?= Date: Tue, 8 Dec 2020 09:40:35 +0100 Subject: [PATCH] Make the static variable kChunkSizeMs constexpr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This CL makes the static variable kChunkSizeMs constexpr to avoid potential issues on some compilers. Bug: None Change-Id: I8e2b1819561ec96fb17d3899af95405cc36a6097 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/196640 Reviewed-by: Mirko Bonadei Commit-Queue: Per Ã…hgren Cr-Commit-Position: refs/heads/master@{#32795} --- modules/audio_processing/include/audio_processing.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/audio_processing/include/audio_processing.h b/modules/audio_processing/include/audio_processing.h index b96ce926a1..802ff9d3fa 100644 --- a/modules/audio_processing/include/audio_processing.h +++ b/modules/audio_processing/include/audio_processing.h @@ -714,7 +714,7 @@ class RTC_EXPORT AudioProcessing : public rtc::RefCountInterface { static constexpr int kMaxNativeSampleRateHz = kNativeSampleRatesHz[kNumNativeSampleRates - 1]; - static const int kChunkSizeMs = 10; + static constexpr int kChunkSizeMs = 10; }; class RTC_EXPORT AudioProcessingBuilder {