summaryrefslogtreecommitdiff
path: root/source/fud_c_file.cpp
diff options
context:
space:
mode:
authorDominick Allen <djallen@librehumanitas.org>2024-10-17 19:42:29 -0500
committerDominick Allen <djallen@librehumanitas.org>2024-10-17 19:42:29 -0500
commit8249b28bea29e8ce17eac12776a60ec3f9e47176 (patch)
tree98318d7564b5f618cfb59e23cc6b918fcab88ee8 /source/fud_c_file.cpp
parentb32e83ece42cec5aa9dee370bcdf349d23dbc8ba (diff)
Rename InvalidInput to ArgumentInvalid.
Diffstat (limited to 'source/fud_c_file.cpp')
-rw-r--r--source/fud_c_file.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/fud_c_file.cpp b/source/fud_c_file.cpp
index 15c57ab..9fc7734 100644
--- a/source/fud_c_file.cpp
+++ b/source/fud_c_file.cpp
@@ -22,7 +22,7 @@ namespace fud {
CBinaryFileResult CBinaryFile::make(const String& filename, CFileMode mode)
{
if (!filename.valid()) {
- return CBinaryFileResult::error(FudStatus::InvalidInput);
+ return CBinaryFileResult::error(FudStatus::ArgumentInvalid);
}
auto modeResult{String::makeFromCString(CBinaryFileModeFromFlags(mode))};
if (modeResult.isError()) {
@@ -42,7 +42,7 @@ CBinaryFileResult CBinaryFile::make(const String& filename, CFileMode mode)
CBinaryFileResult CBinaryFile::make(const String& filename, CFileMode mode, const char* extraFlags)
{
if (!filename.valid()) {
- return CBinaryFileResult::error(FudStatus::InvalidInput);
+ return CBinaryFileResult::error(FudStatus::ArgumentInvalid);
}
auto modeResult{String::makeFromCStrings(CBinaryFileModeFromFlags(mode), extraFlags)};
if (modeResult.isError()) {
@@ -90,7 +90,7 @@ CBinaryFile& CBinaryFile::operator=(CBinaryFile&& rhs) noexcept
CTextFileResult CTextFile::make(const String& filename, CFileMode mode)
{
if (!filename.valid()) {
- return CTextFileResult::error(FudStatus::InvalidInput);
+ return CTextFileResult::error(FudStatus::ArgumentInvalid);
}
auto modeResult{String::makeFromCString(CBinaryFileModeFromFlags(mode))};
if (modeResult.isError()) {
@@ -110,7 +110,7 @@ CTextFileResult CTextFile::make(const String& filename, CFileMode mode)
CTextFileResult CTextFile::make(const String& filename, CFileMode mode, const char* extraFlags)
{
if (!filename.valid()) {
- return CTextFileResult::error(FudStatus::InvalidInput);
+ return CTextFileResult::error(FudStatus::ArgumentInvalid);
}
auto modeResult{String::makeFromCStrings(CTextFileModeFromFlags(mode), extraFlags)};
if (modeResult.isError()) {