From 79620980ea3880f6512a35b9d688a60a02ff8b98 Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Sat, 5 Oct 2024 08:33:39 -0500 Subject: Formatting changes. Refactoring out detail::CopyMove from Result. --- source/libfud.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/libfud.cpp') diff --git a/source/libfud.cpp b/source/libfud.cpp index 252eae0..8c962ba 100644 --- a/source/libfud.cpp +++ b/source/libfud.cpp @@ -18,7 +18,7 @@ #include "libfud.hpp" #include "fud_assert.hpp" -#include "git_version.hpp" +#include "fud_version.hpp" #include @@ -27,10 +27,10 @@ namespace fud { FUD fud() { FUD fudInfo{}; + static_assert(sizeof(GitHash) >= sizeof(fudInfo.revision)); fudInfo.major = FudVersionMajor; fudInfo.minor = FudVersionMinor; fudInfo.patch = FudVersionPatch; - static_assert(sizeof(GitHash) >= sizeof(fudInfo.revision)); auto copyResult = copyMem(fudInfo.revision.data(), fudInfo.revision.size(), GitHash, fudInfo.revision.size() - 1); fudAssert(copyResult == FudStatus::Success); fudInfo.revision[fudInfo.revision.size() - 1] = '\0'; -- cgit v1.2.3