Skip to content

Commit

Permalink
Fix SA warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Ihor Drachuk committed Mar 28, 2024
1 parent 0d1a0aa commit ffae48d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions headers/alog/record.h
Original file line number Diff line number Diff line change
Expand Up @@ -892,5 +892,5 @@ ALog::Record&& operator<< (ALog::Record&& record, const std::chrono::duration<Ts
}


template<typename T> inline ALog::Record& operator<< (ALog::Record& record, T&& value) { std::move(record) << std::forward<T&&>(value); return record; }
template<typename T> inline ALog::Record& operator<< (ALog::Record& record, const T& value) { std::move(record) << value; return record; }
template<typename T> inline ALog::Record& operator<< (ALog::Record& record, T&& value) { return (std::move(record) << std::forward<T&&>(value)); }
template<typename T> inline ALog::Record& operator<< (ALog::Record& record, const T& value) { return (std::move(record) << value); }
12 changes: 6 additions & 6 deletions headers/alog/tools_filesystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
#if __has_include(<filesystem>)
#include <filesystem>

static bool fsExists(const std::filesystem::directory_entry& x) {
inline bool fsExists(const std::filesystem::directory_entry& x) {
return x.exists();
}

static bool fsIsDirectory(const std::filesystem::directory_entry& x) {
inline bool fsIsDirectory(const std::filesystem::directory_entry& x) {
return x.is_directory();
}

static uintmax_t fsSize(const std::filesystem::directory_entry& x) {
inline uintmax_t fsSize(const std::filesystem::directory_entry& x) {
return x.file_size();
}
#else
Expand All @@ -25,15 +25,15 @@
using namespace experimental;
} // namespace std

static bool fsExists(const std::filesystem::directory_entry& x) {
inline bool fsExists(const std::filesystem::directory_entry& x) {
return std::filesystem::exists(x);
}

static bool fsIsDirectory(const std::filesystem::directory_entry& x) {
inline bool fsIsDirectory(const std::filesystem::directory_entry& x) {
return std::filesystem::is_directory(x);
}

static uintmax_t fsSize(const std::filesystem::directory_entry& x) {
inline uintmax_t fsSize(const std::filesystem::directory_entry& x) {
return std::filesystem::file_size(x);
}
#endif // __has_include(<filesystem>)

0 comments on commit ffae48d

Please sign in to comment.