clang-tidy: add Chrome-inspired checks
[lttng-tools.git] / src / common / time.cpp
index 5155eb82cf1a74329fa7b0a94ca169e619a36ffa..ca29b2d61891efad38919300ee6771cc70f7008d 100644 (file)
@@ -21,7 +21,7 @@
 
 static bool utf8_output_supported;
 
-bool locale_supports_utf8(void)
+bool locale_supports_utf8()
 {
        return utf8_output_supported;
 }
@@ -57,9 +57,9 @@ struct timespec timespec_abs_diff(struct timespec t1, struct timespec t2)
        return res;
 }
 
-static void __attribute__((constructor)) init_locale_utf8_support(void)
+static void __attribute__((constructor)) init_locale_utf8_support()
 {
-       const char *program_locale = setlocale(LC_ALL, NULL);
+       const char *program_locale = setlocale(LC_ALL, nullptr);
        const char *lang = getenv("LANG");
 
        if (program_locale && strstr(program_locale, "utf8")) {
This page took 0.024046 seconds and 4 git commands to generate.