From d23e73b38da716fc12d2c42fa07fa4525ce92798 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Sun, 26 Oct 2025 22:05:41 +0100 Subject: [PATCH] refactor: Use std::chrono_literals --- src/ccache/ccache.cpp | 2 +- src/ccache/inodecache.cpp | 2 +- src/ccache/storage/local/localstorage.cpp | 2 +- src/ccache/util/lockfile.cpp | 2 +- unittest/test_inodecache.cpp | 2 +- unittest/test_util_string.cpp | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ccache/ccache.cpp b/src/ccache/ccache.cpp index bc5b0b6d..c8cc6775 100644 --- a/src/ccache/ccache.cpp +++ b/src/ccache/ccache.cpp @@ -94,7 +94,7 @@ namespace fs = util::filesystem; -using namespace std::literals::chrono_literals; +using namespace std::chrono_literals; using core::Statistic; using util::DirEntry; diff --git a/src/ccache/inodecache.cpp b/src/ccache/inodecache.cpp index 82452c7d..ed9c7f98 100644 --- a/src/ccache/inodecache.cpp +++ b/src/ccache/inodecache.cpp @@ -54,7 +54,7 @@ namespace fs = util::filesystem; -using namespace std::literals::chrono_literals; +using namespace std::chrono_literals; // The inode cache resides on a file that is mapped into shared memory by // running processes. It is implemented as a two level structure, where the top diff --git a/src/ccache/storage/local/localstorage.cpp b/src/ccache/storage/local/localstorage.cpp index ce2aaeb4..c25899f9 100644 --- a/src/ccache/storage/local/localstorage.cpp +++ b/src/ccache/storage/local/localstorage.cpp @@ -85,7 +85,7 @@ namespace fs = util::filesystem; -using namespace std::literals::chrono_literals; +using namespace std::chrono_literals; using core::AtomicFile; using core::Statistic; diff --git a/src/ccache/util/lockfile.cpp b/src/ccache/util/lockfile.cpp index 3c91309f..143641f8 100644 --- a/src/ccache/util/lockfile.cpp +++ b/src/ccache/util/lockfile.cpp @@ -41,7 +41,7 @@ #include #include -using namespace std::literals::chrono_literals; +using namespace std::chrono_literals; namespace fs = util::filesystem; diff --git a/unittest/test_inodecache.cpp b/unittest/test_inodecache.cpp index 7e60ca92..ce285d4f 100644 --- a/unittest/test_inodecache.cpp +++ b/unittest/test_inodecache.cpp @@ -38,7 +38,7 @@ namespace fs = util::filesystem; -using namespace std::literals::chrono_literals; +using namespace std::chrono_literals; using TestUtil::TestContext; diff --git a/unittest/test_util_string.cpp b/unittest/test_util_string.cpp index 53df10a9..4b90db0d 100644 --- a/unittest/test_util_string.cpp +++ b/unittest/test_util_string.cpp @@ -25,7 +25,7 @@ #include // https://github.com/doctest/doctest/issues/618 #include -using namespace std::literals::chrono_literals; +using namespace std::chrono_literals; TEST_SUITE_BEGIN("util"); -- 2.47.3