]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
chore: Use brace initialization for integer literals
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 11 Feb 2024 11:07:27 +0000 (12:07 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 11 Feb 2024 13:19:27 +0000 (14:19 +0100)
src/util/TextTable.cpp
src/util/wincompat.hpp

index e2e24f70ccc223b4a4aaff1c5148e8c45084ccc7..58d01a63b298e746f48a8df521b6513f4f3c5241 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2021-2023 Joel Rosdahl and other contributors
+// Copyright (C) 2021-2024 Joel Rosdahl and other contributors
 //
 // See doc/AUTHORS.adoc for a complete list of contributors.
 //
@@ -32,7 +32,7 @@ TextTable::add_heading(const std::string& text)
   Cell cell(text);
   cell.m_heading = true;
   m_rows.push_back({cell});
-  m_columns = std::max(m_columns, size_t(1));
+  m_columns = std::max(m_columns, size_t{1});
 }
 
 void
index 3aea7ab41be864ee5fbf67755581d15b180888cd..f2f2a7984f4e0cbea1f302e98dfc55257fe7857a 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2021-2023 Joel Rosdahl and other contributors
+// Copyright (C) 2021-2024 Joel Rosdahl and other contributors
 //
 // See doc/AUTHORS.adoc for a complete list of contributors.
 //
@@ -29,8 +29,8 @@
 // From:
 // http://mesos.apache.org/api/latest/c++/3rdparty_2stout_2include_2stout_2windows_8hpp_source.html
 #  ifdef _MSC_VER
-const mode_t S_IRUSR = mode_t(_S_IREAD);
-const mode_t S_IWUSR = mode_t(_S_IWRITE);
+const mode_t S_IRUSR = mode_t{_S_IREAD};
+const mode_t S_IWUSR = mode_t{_S_IWRITE};
 #  endif
 
 #  ifndef S_IFIFO