diff options
author | Alexander Harkness <me@bearbin.net> | 2024-11-02 22:27:47 +0100 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2024-11-02 22:27:47 +0100 |
commit | cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a (patch) | |
tree | f647b20e1823f1846af88e832cf82a4a02e96e69 /Tools/MCADefrag/MCADefrag.h | |
parent | Improve clang-format config file, remove automatically enforced code style from contrib guide. (diff) | |
download | cuberite-clang-format-codebase.tar cuberite-clang-format-codebase.tar.gz cuberite-clang-format-codebase.tar.bz2 cuberite-clang-format-codebase.tar.lz cuberite-clang-format-codebase.tar.xz cuberite-clang-format-codebase.tar.zst cuberite-clang-format-codebase.zip |
Diffstat (limited to 'Tools/MCADefrag/MCADefrag.h')
-rw-r--r-- | Tools/MCADefrag/MCADefrag.h | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/Tools/MCADefrag/MCADefrag.h b/Tools/MCADefrag/MCADefrag.h index cc151d032..88ed29207 100644 --- a/Tools/MCADefrag/MCADefrag.h +++ b/Tools/MCADefrag/MCADefrag.h @@ -20,16 +20,14 @@ - class cMCADefrag { -public: - + public: enum { MAX_COMPRESSED_CHUNK_DATA_SIZE = (1 MiB), - MAX_RAW_CHUNK_DATA_SIZE = (100 MiB), - } ; + MAX_RAW_CHUNK_DATA_SIZE = (100 MiB), + }; cMCADefrag(void); @@ -40,26 +38,22 @@ public: /** Runs the entire app. */ void Run(void); -protected: - + protected: /** A single thread processing MCA files from the queue */ - class cThread : - public cIsThread + class cThread : public cIsThread { typedef cIsThread super; - public: - + public: cThread(cMCADefrag & a_Parent); - protected: - + protected: /** The compression methods, as specified by the MCA compression method byte. */ enum { COMPRESSION_GZIP = 1, COMPRESSION_ZLIB = 2, - } ; + }; cMCADefrag & m_Parent; @@ -127,7 +121,7 @@ protected: // cIsThread overrides: virtual void Execute(void) override; - } ; + }; typedef std::list<cThread *> cThreads; @@ -154,4 +148,4 @@ protected: /** Retrieves one file from the queue (and removes it from the queue). Returns an empty string when queue empty. */ AString GetNextFileName(void); -} ; +}; |