clang-tidy: apply suggested fixes
[lttng-tools.git] / tests / unit / test_rate_policy.cpp
index 40ac0b4d6a118f1faa17d8e59b4a1dd9513dfc13..6a12d3422b4b350c1969fca7f4da45352c1c62e4 100644 (file)
@@ -33,8 +33,8 @@ static void test_rate_policy_every_n()
        struct lttng_rate_policy *policy_b = nullptr; /* Interval of 100 */
        struct lttng_rate_policy *policy_c = nullptr; /* Interval of 1 */
        struct lttng_rate_policy *policy_from_buffer = nullptr;
-       uint64_t interval_a_b = 100;
-       uint64_t interval_c = 1;
+       const uint64_t interval_a_b = 100;
+       const uint64_t interval_c = 1;
        uint64_t interval_query = 0;
        struct lttng_payload payload;
 
@@ -117,8 +117,8 @@ static void test_rate_policy_once_after_n()
        struct lttng_rate_policy *policy_b = nullptr; /* threshold of 100 */
        struct lttng_rate_policy *policy_c = nullptr; /* threshold of 1 */
        struct lttng_rate_policy *policy_from_buffer = nullptr;
-       uint64_t threshold_a_b = 100;
-       uint64_t threshold_c = 1;
+       const uint64_t threshold_a_b = 100;
+       const uint64_t threshold_c = 1;
        uint64_t threshold_query = 0;
        struct lttng_payload payload;
 
This page took 0.02372 seconds and 4 git commands to generate.