From b8534e18ab6c35bdcb3a9b312f1471bfca11d1b1 Mon Sep 17 00:00:00 2001 From: bugdea1er Date: Sun, 28 Jan 2024 21:43:58 +0300 Subject: [PATCH] Tidy up includes --- include/tmp/directory.hpp | 1 - include/tmp/file.hpp | 2 +- include/tmp/path.hpp | 1 - lib/directory.cpp | 2 ++ lib/file.cpp | 2 ++ lib/path.cpp | 2 ++ 6 files changed, 7 insertions(+), 3 deletions(-) diff --git a/include/tmp/directory.hpp b/include/tmp/directory.hpp index 7c51173..4fb3269 100644 --- a/include/tmp/directory.hpp +++ b/include/tmp/directory.hpp @@ -4,7 +4,6 @@ #include #include -#include namespace tmp { diff --git a/include/tmp/file.hpp b/include/tmp/file.hpp index 900c780..7b74113 100644 --- a/include/tmp/file.hpp +++ b/include/tmp/file.hpp @@ -2,7 +2,7 @@ #include -#include +#include #include #include diff --git a/include/tmp/path.hpp b/include/tmp/path.hpp index 56cf9cd..8785fbd 100644 --- a/include/tmp/path.hpp +++ b/include/tmp/path.hpp @@ -3,7 +3,6 @@ #include #include #include -#include namespace tmp { diff --git a/lib/directory.cpp b/lib/directory.cpp index 39f7578..ac85d19 100644 --- a/lib/directory.cpp +++ b/lib/directory.cpp @@ -1,5 +1,7 @@ #include +#include + namespace tmp { directory::directory(std::string_view prefix) : path(create(prefix)) {} diff --git a/lib/file.cpp b/lib/file.cpp index 3551d6e..1db5b3d 100644 --- a/lib/file.cpp +++ b/lib/file.cpp @@ -1,5 +1,7 @@ #include +#include + namespace tmp { file::file(std::string_view prefix) : file(prefix, /*binary=*/true) { diff --git a/lib/path.cpp b/lib/path.cpp index 30ff64e..bf772f4 100644 --- a/lib/path.cpp +++ b/lib/path.cpp @@ -1,5 +1,7 @@ #include +#include + namespace tmp { namespace {