From ee1829d67c8182728c0995c455b8ebe2cbd0adea Mon Sep 17 00:00:00 2001 From: Keno Hassler <40292329+kenohassler@users.noreply.github.com> Date: Wed, 13 Sep 2023 23:32:54 +0200 Subject: [PATCH] make clang-format happy --- src/AuFile.cc | 4 ++-- src/AudioData.h | 4 ++-- src/BmpFile.cc | 8 ++++---- src/Embedder.cc | 3 ++- src/WavFile.cc | 8 ++++---- tests/steghide/MCryptPPTest.cc | 4 +--- 6 files changed, 15 insertions(+), 16 deletions(-) diff --git a/src/AuFile.cc b/src/AuFile.cc index 4c38401..ea372a3 100644 --- a/src/AuFile.cc +++ b/src/AuFile.cc @@ -95,7 +95,7 @@ void AuFile::read(BinaryIO *io) { break; }; Header.encoding = (ENCODING)encoding; - } catch (BinaryInputError& e) { + } catch (BinaryInputError &e) { switch (e.getType()) { case BinaryInputError::FILE_ERR: { throw SteghideError( @@ -152,7 +152,7 @@ void AuFile::write() { for (unsigned long i = 0; i < Infofield.size(); i++) { getBinIO()->write8(Infofield[i]); } - } catch (BinaryOutputError& e) { + } catch (BinaryOutputError &e) { switch (e.getType()) { case BinaryOutputError::FILE_ERR: { throw SteghideError( diff --git a/src/AudioData.h b/src/AudioData.h index a4fea3d..29cda69 100644 --- a/src/AudioData.h +++ b/src/AudioData.h @@ -86,7 +86,7 @@ void AudioDataImpl::read(BinaryIO *io, UWORD32 Data[i] = readValue(io); } } - } catch (BinaryInputError& e) { + } catch (BinaryInputError &e) { switch (e.getType()) { case BinaryInputError::FILE_ERR: { throw SteghideError( @@ -125,7 +125,7 @@ void AudioDataImpl::write(BinaryIO *io, UWORD3 for (UWORD32 i = 0; i < n; i++) { writeValue(io, Data[i]); } - } catch (BinaryOutputError& e) { + } catch (BinaryOutputError &e) { switch (e.getType()) { case BinaryOutputError::FILE_ERR: { throw SteghideError( diff --git a/src/BmpFile.cc b/src/BmpFile.cc index 484d268..5a5dbc9 100644 --- a/src/BmpFile.cc +++ b/src/BmpFile.cc @@ -433,7 +433,7 @@ void BmpFile::readheaders() { break; } } - } catch (BinaryInputError& e) { + } catch (BinaryInputError &e) { switch (e.getType()) { case BinaryInputError::FILE_ERR: { throw SteghideError( @@ -688,7 +688,7 @@ void BmpFile::writeheaders() { break; } } - } catch (BinaryOutputError& e) { + } catch (BinaryOutputError &e) { switch (e.getType()) { case BinaryOutputError::FILE_ERR: { throw SteghideError( @@ -810,7 +810,7 @@ void BmpFile::readdata() { while (!getBinIO()->eof()) { atend.push_back(getBinIO()->read8()); } - } catch (BinaryInputError& e) { + } catch (BinaryInputError &e) { switch (e.getType()) { case BinaryInputError::FILE_ERR: { throw SteghideError( @@ -865,7 +865,7 @@ void BmpFile::writedata() { for (std::vector::iterator i = atend.begin(); i != atend.end(); i++) { getBinIO()->write8(*i); } - } catch (BinaryOutputError& e) { + } catch (BinaryOutputError &e) { switch (e.getType()) { case BinaryOutputError::FILE_ERR: { throw SteghideError( diff --git a/src/Embedder.cc b/src/Embedder.cc index 16409c0..43e5fc3 100644 --- a/src/Embedder.cc +++ b/src/Embedder.cc @@ -154,7 +154,8 @@ void Embedder::embed() { cvrstring = "\"" + Args.CvrFn.getValue() + "\""; } char buf[200]; - snprintf(buf, sizeof(buf), _("embedding %s in %s..."), embstring.c_str(), cvrstring.c_str()); + snprintf(buf, sizeof(buf), _("embedding %s in %s..."), embstring.c_str(), + cvrstring.c_str()); prout = new ProgressOutput(std::string(buf)); } else if (Args.Verbosity.getValue() == VERBOSE) { diff --git a/src/WavFile.cc b/src/WavFile.cc index 89b7f00..cc1e88a 100644 --- a/src/WavFile.cc +++ b/src/WavFile.cc @@ -225,7 +225,7 @@ void WavFile::readdata(void) { while (!getBinIO()->eof()) { UnusedAfterData.push_back(getBinIO()->read8()); } - } catch (BinaryInputError& e) { + } catch (BinaryInputError &e) { switch (e.getType()) { case BinaryInputError::FILE_ERR: { throw SteghideError( @@ -285,7 +285,7 @@ void WavFile::writedata(void) { it != UnusedAfterData.end(); it++) { getBinIO()->write8(*it); } - } catch (BinaryOutputError& e) { + } catch (BinaryOutputError &e) { switch (e.getType()) { case BinaryOutputError::FILE_ERR: { throw SteghideError( @@ -330,7 +330,7 @@ void WavFile::readheaders() { } datachhdr = chhdr; - } catch (BinaryInputError& e) { + } catch (BinaryInputError &e) { switch (e.getType()) { case BinaryInputError::FILE_ERR: { throw SteghideError( @@ -378,7 +378,7 @@ void WavFile::writeheaders() { } datachhdr->write(getBinIO()); - } catch (BinaryOutputError& e) { + } catch (BinaryOutputError &e) { switch (e.getType()) { case BinaryOutputError::FILE_ERR: { throw SteghideError( diff --git a/tests/steghide/MCryptPPTest.cc b/tests/steghide/MCryptPPTest.cc index da82be1..85a6392 100644 --- a/tests/steghide/MCryptPPTest.cc +++ b/tests/steghide/MCryptPPTest.cc @@ -36,6 +36,4 @@ bool MCryptPPTest::genericTestEncryption() { return true; } -bool MCryptPPTest::genericTestDecryption() { - return true; -} +bool MCryptPPTest::genericTestDecryption() { return true; }