2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-04-21 19:08:41 +00:00

chore: use TextFileCheckDirtyOutput for RawTemplater

This commit is contained in:
Jan Laupetin
2026-03-05 19:55:32 +00:00
parent d80cdd9712
commit 5f28bcc58a
3 changed files with 36 additions and 12 deletions

View File

@@ -67,6 +67,12 @@ namespace utils
return true;
}
TextFileCheckDirtyOutput::TextFileCheckDirtyOutput()
: m_open(false),
m_has_existing_file(false)
{
}
TextFileCheckDirtyOutput::TextFileCheckDirtyOutput(fs::path path)
: m_path(std::move(path)),
m_open(false),

View File

@@ -32,6 +32,7 @@ namespace utils
class TextFileCheckDirtyOutput final
{
public:
TextFileCheckDirtyOutput();
explicit TextFileCheckDirtyOutput(std::filesystem::path path);
~TextFileCheckDirtyOutput();
TextFileCheckDirtyOutput(const TextFileCheckDirtyOutput& other) = delete;