summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2019-12-02 22:17:52 +0100
committerAlbert Astals Cid <aacid@kde.org>2019-12-02 22:17:52 +0100
commitfc9f0f12e88a21e8f15e9b881351e8515c9b6179 (patch)
treec987e83ab755563ab991d0ca84e99e6fa644f70a /test
parent77aa3a007598c4c4836f45d355642d7240f7432b (diff)
enable modernize-use-bool-literals
No copyright, this is a mechanical change
Diffstat (limited to 'test')
-rw-r--r--test/perf-test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/perf-test.cc b/test/perf-test.cc
index 0dd0304b..1988d705 100644
--- a/test/perf-test.cc
+++ b/test/perf-test.cc
@@ -313,7 +313,7 @@ static void sleep_milliseconds(int milliseconds)
nanosecs = (milliseconds - (secs * 1000)) * 1000;
tv.tv_sec = (time_t) secs;
tv.tv_nsec = (long) nanosecs;
- while (1)
+ while (true)
{
int rval = nanosleep(&tv, &tv);
if (rval == 0)