diff options
author | torbjorng <torbjorng@webrtc.org> | 2015-12-16 18:38:31 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-17 02:38:34 +0000 |
commit | a08925791ce431421f0c45b8380737cccc198349 (patch) | |
tree | 9d7875f9c09e9e487641970a035ea518f9c1e294 /webrtc/modules/remote_bitrate_estimator/test | |
parent | a54a0801121e05f797e514731cc5c9bad2f5e597 (diff) | |
download | webrtc-a08925791ce431421f0c45b8380737cccc198349.tar.gz |
Cleanup use of "do { ... } while (0)".
BUG=
Review URL: https://codereview.webrtc.org/1530003004
Cr-Commit-Position: refs/heads/master@{#11061}
Diffstat (limited to 'webrtc/modules/remote_bitrate_estimator/test')
-rw-r--r-- | webrtc/modules/remote_bitrate_estimator/test/bwe_test_logging.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/webrtc/modules/remote_bitrate_estimator/test/bwe_test_logging.h b/webrtc/modules/remote_bitrate_estimator/test/bwe_test_logging.h index 4115d30c2a..cc7807ba8a 100644 --- a/webrtc/modules/remote_bitrate_estimator/test/bwe_test_logging.h +++ b/webrtc/modules/remote_bitrate_estimator/test/bwe_test_logging.h @@ -130,12 +130,12 @@ #define BWE_TEST_LOGGING_GLOBAL_CONTEXT(name) \ do { \ webrtc::testing::bwe::Logging::GetInstance()->SetGlobalContext(name); \ - } while (0); + } while (0) #define BWE_TEST_LOGGING_GLOBAL_ENABLE(enabled) \ do { \ webrtc::testing::bwe::Logging::GetInstance()->SetGlobalEnable(enabled); \ - } while (0); + } while (0) #define __BWE_TEST_LOGGING_CONTEXT_NAME(ctx, line) ctx ## line #define __BWE_TEST_LOGGING_CONTEXT_DECLARE(ctx, line, name, time, enabled) \ @@ -155,36 +155,36 @@ do { \ BWE_TEST_LOGGING_CONTEXT(name); \ webrtc::testing::bwe::Logging::GetInstance()->Log(format, _1); \ - } while (0); + } while (0) #define BWE_TEST_LOGGING_LOG2(name, format, _1, _2) \ do { \ BWE_TEST_LOGGING_CONTEXT(name); \ webrtc::testing::bwe::Logging::GetInstance()->Log(format, _1, _2); \ - } while (0); + } while (0) #define BWE_TEST_LOGGING_LOG3(name, format, _1, _2, _3) \ do { \ BWE_TEST_LOGGING_CONTEXT(name); \ webrtc::testing::bwe::Logging::GetInstance()->Log(format, _1, _2, _3); \ - } while (0); + } while (0) #define BWE_TEST_LOGGING_LOG4(name, format, _1, _2, _3, _4) \ do { \ BWE_TEST_LOGGING_CONTEXT(name); \ webrtc::testing::bwe::Logging::GetInstance()->Log(format, _1, _2, _3, \ _4); \ - } while (0); + } while (0) #define BWE_TEST_LOGGING_LOG5(name, format, _1, _2, _3, _4, _5) \ do {\ BWE_TEST_LOGGING_CONTEXT(name); \ webrtc::testing::bwe::Logging::GetInstance()->Log(format, _1, _2, _3, \ _4, _5); \ - } while (0); + } while (0) #define BWE_TEST_LOGGING_PLOT(figure, name, time, value) \ do { \ __BWE_TEST_LOGGING_CONTEXT_DECLARE(__bwe_log_, __PLOT__, name, \ static_cast<int64_t>(time), true); \ webrtc::testing::bwe::Logging::GetInstance()->Plot(figure, value); \ - } while (0); + } while (0) #define BWE_TEST_LOGGING_PLOT_WITH_NAME(figure, name, time, value, alg_name) \ do { \ @@ -192,21 +192,21 @@ static_cast<int64_t>(time), true); \ webrtc::testing::bwe::Logging::GetInstance()->Plot(figure, value, \ alg_name); \ - } while (0); + } while (0) #define BWE_TEST_LOGGING_BAR(figure, name, value, flow_id) \ do { \ BWE_TEST_LOGGING_CONTEXT(name); \ webrtc::testing::bwe::Logging::GetInstance()->PlotBar(figure, name, value, \ flow_id); \ - } while (0); + } while (0) #define BWE_TEST_LOGGING_BASELINEBAR(figure, name, value, flow_id) \ do { \ BWE_TEST_LOGGING_CONTEXT(name); \ webrtc::testing::bwe::Logging::GetInstance()->PlotBaselineBar( \ figure, name, value, flow_id); \ - } while (0); + } while (0) #define BWE_TEST_LOGGING_ERRORBAR(figure, name, value, ylow, yhigh, title, \ flow_id) \ @@ -214,7 +214,7 @@ BWE_TEST_LOGGING_CONTEXT(name); \ webrtc::testing::bwe::Logging::GetInstance()->PlotErrorBar( \ figure, name, value, ylow, yhigh, title, flow_id); \ - } while (0); + } while (0) #define BWE_TEST_LOGGING_LIMITERRORBAR( \ figure, name, value, ylow, yhigh, error_title, ymax, limit_title, flow_id) \ @@ -223,14 +223,14 @@ webrtc::testing::bwe::Logging::GetInstance()->PlotLimitErrorBar( \ figure, name, value, ylow, yhigh, error_title, ymax, limit_title, \ flow_id); \ - } while (0); + } while (0) #define BWE_TEST_LOGGING_LABEL(figure, title, y_label, num_flows) \ do { \ BWE_TEST_LOGGING_CONTEXT(title); \ webrtc::testing::bwe::Logging::GetInstance()->PlotLabel( \ figure, title, y_label, num_flows); \ - } while (0); + } while (0) namespace webrtc { |