From 182c8f8357739f905bbd721006480502435b6b43 Mon Sep 17 00:00:00 2001 From: rtk0c Date: Sun, 27 Nov 2022 12:04:31 -0800 Subject: Update brace style to match rest of my projects --- app/source/Cplt/Utils/IO/FileStream.hpp | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'app/source/Cplt/Utils/IO/FileStream.hpp') diff --git a/app/source/Cplt/Utils/IO/FileStream.hpp b/app/source/Cplt/Utils/IO/FileStream.hpp index 453ddbe..37b2a36 100644 --- a/app/source/Cplt/Utils/IO/FileStream.hpp +++ b/app/source/Cplt/Utils/IO/FileStream.hpp @@ -8,10 +8,8 @@ // TODO switch to custom when unit tests are ready and bugs are fixed #define CPLT_FILESTREAM_USE_CSTDIO -struct IoResult -{ - enum ErrorKind - { +struct IoResult { + enum ErrorKind { ERR_None, ERR_PermissionDenied, ERR_UnexpectedEof, @@ -25,8 +23,7 @@ struct IoResult size_t BytesMoved; }; -class InputFileStream -{ +class InputFileStream { private: #if defined(CPLT_FILESTREAM_USE_CSTDIO) FILE* mFile; @@ -60,11 +57,9 @@ public: IoResult ReadBytes(size_t bufferLength, std::byte* buffer); }; -class OutputFileStream -{ +class OutputFileStream { public: - enum WriteMode - { + enum WriteMode { AppendFile, TruncateFile, }; -- cgit v1.2.3-70-g09d2