aboutsummaryrefslogtreecommitdiffstats
path: root/utils/cec-follower/cec-processing.cpp
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2021-04-23 19:47:38 -0700
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2021-05-26 13:05:41 +0200
commit9438348faaf848f011470760d5a07dcb5e762720 (patch)
treee7d18c0f98cf9f5345cee0577e0f1e432155afb8 /utils/cec-follower/cec-processing.cpp
parentdee1ba88a3e44665a5da822d5408708b150dcf51 (diff)
mass constexpr conversions
Use constexpr instead of const, ensuring these are all initialized at compile time. Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'utils/cec-follower/cec-processing.cpp')
-rw-r--r--utils/cec-follower/cec-processing.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/cec-follower/cec-processing.cpp b/utils/cec-follower/cec-processing.cpp
index c76ec54e..5b9db19f 100644
--- a/utils/cec-follower/cec-processing.cpp
+++ b/utils/cec-follower/cec-processing.cpp
@@ -41,8 +41,8 @@ struct la_info la_info[15];
static struct timespec start_monotonic;
static struct timeval start_timeofday;
-static const time_t time_to_transient = 1;
-static const time_t time_to_stable = 8;
+static constexpr time_t time_to_transient = 1;
+static constexpr time_t time_to_stable = 8;
static const char *get_ui_cmd_string(__u8 ui_cmd)
{

Privacy Policy