From d80cb7233aaa26d18015736105766f0dbeb1c5a3 Mon Sep 17 00:00:00 2001 From: Martchus Date: Tue, 20 Mar 2018 20:11:31 +0100 Subject: [PATCH] Apply clang-format --- io/cryptoexception.cpp | 2 +- io/cryptoexception.h | 2 +- io/entry.cpp | 2 +- io/entry.h | 2 +- io/field.cpp | 2 +- io/field.h | 2 +- io/parsingexception.cpp | 2 +- io/parsingexception.h | 2 +- io/passwordfile.cpp | 2 +- io/passwordfile.h | 2 +- util/openssl.cpp | 4 ++-- util/openssl.h | 4 ++-- util/opensslrandomdevice.cpp | 2 +- util/opensslrandomdevice.h | 2 +- 14 files changed, 16 insertions(+), 16 deletions(-) diff --git a/io/cryptoexception.cpp b/io/cryptoexception.cpp index 92747a5..91dedf0 100644 --- a/io/cryptoexception.cpp +++ b/io/cryptoexception.cpp @@ -20,4 +20,4 @@ CryptoException::CryptoException(const std::string &openSslErrorQueue) noexcept CryptoException::~CryptoException() noexcept { } -} +} // namespace Io diff --git a/io/cryptoexception.h b/io/cryptoexception.h index d2f92c5..f0afd27 100644 --- a/io/cryptoexception.h +++ b/io/cryptoexception.h @@ -13,6 +13,6 @@ public: CryptoException(const std::string &openSslErrorQueue) noexcept; ~CryptoException() noexcept; }; -} +} // namespace Io #endif // CRYPTOFAILUREEXCEPTION_H diff --git a/io/entry.cpp b/io/entry.cpp index eb94f5a..4427633 100644 --- a/io/entry.cpp +++ b/io/entry.cpp @@ -451,4 +451,4 @@ AccountEntry *AccountEntry::clone() const { return new AccountEntry(*this); } -} +} // namespace Io diff --git a/io/entry.h b/io/entry.h index 46b026f..50cb3f9 100644 --- a/io/entry.h +++ b/io/entry.h @@ -174,6 +174,6 @@ inline std::vector &AccountEntry::fields() { return m_fields; } -} +} // namespace Io #endif // ENTRY_H diff --git a/io/field.cpp b/io/field.cpp index 5b6f8e7..8587e72 100644 --- a/io/field.cpp +++ b/io/field.cpp @@ -72,4 +72,4 @@ void Field::make(ostream &stream) const writer.writeString(m_extendedData); } } -} +} // namespace Io diff --git a/io/field.h b/io/field.h index 9a966a4..5d6543f 100644 --- a/io/field.h +++ b/io/field.h @@ -109,6 +109,6 @@ inline bool Field::isValidType(int number) { return number >= 0 && number <= 1; } -} +} // namespace Io #endif // FIELD_H diff --git a/io/parsingexception.cpp b/io/parsingexception.cpp index 41e989e..ff1af85 100644 --- a/io/parsingexception.cpp +++ b/io/parsingexception.cpp @@ -21,4 +21,4 @@ ParsingException::ParsingException(const std::string &message) noexcept ParsingException::~ParsingException() noexcept { } -} +} // namespace Io diff --git a/io/parsingexception.h b/io/parsingexception.h index eecf897..0000cb1 100644 --- a/io/parsingexception.h +++ b/io/parsingexception.h @@ -13,6 +13,6 @@ public: ParsingException(const std::string &message = std::string()) noexcept; ~ParsingException() noexcept; }; -} +} // namespace Io #endif // PARSINGEXCEPTION_H diff --git a/io/passwordfile.cpp b/io/passwordfile.cpp index c947431..bd3f0c6 100644 --- a/io/passwordfile.cpp +++ b/io/passwordfile.cpp @@ -570,4 +570,4 @@ size_t PasswordFile::size() m_file.seekg(0, ios::end); return m_file.tellg(); } -} +} // namespace Io diff --git a/io/passwordfile.h b/io/passwordfile.h index 8fb2af6..5a8f0e5 100644 --- a/io/passwordfile.h +++ b/io/passwordfile.h @@ -54,6 +54,6 @@ private: IoUtilities::BinaryReader m_freader; IoUtilities::BinaryWriter m_fwriter; }; -} +} // namespace Io #endif // PASSWORDFILE_H diff --git a/util/openssl.cpp b/util/openssl.cpp index 2d1a4c9..f8e39f3 100644 --- a/util/openssl.cpp +++ b/util/openssl.cpp @@ -35,5 +35,5 @@ void clean() // remove error strings ERR_free_strings(); } -} -} +} // namespace OpenSsl +} // namespace Util diff --git a/util/openssl.h b/util/openssl.h index befaf36..fbb76b2 100644 --- a/util/openssl.h +++ b/util/openssl.h @@ -9,7 +9,7 @@ namespace OpenSsl { void PASSWORD_FILE_EXPORT init(); void PASSWORD_FILE_EXPORT clean(); -} -} +} // namespace OpenSsl +} // namespace Util #endif // OPENSSL_H diff --git a/util/opensslrandomdevice.cpp b/util/opensslrandomdevice.cpp index c263fdd..e6d7e2b 100644 --- a/util/opensslrandomdevice.cpp +++ b/util/opensslrandomdevice.cpp @@ -59,4 +59,4 @@ bool OpenSslRandomDevice::status() const { return RAND_status(); } -} +} // namespace Util diff --git a/util/opensslrandomdevice.h b/util/opensslrandomdevice.h index b34bfcd..afa8ebe 100644 --- a/util/opensslrandomdevice.h +++ b/util/opensslrandomdevice.h @@ -13,6 +13,6 @@ public: uint32 operator()() const; bool status() const; }; -} +} // namespace Util #endif // OPENSSLRANDOMDEVICE_H