Skip to content

Commit

Permalink
make clang-format happy
Browse files Browse the repository at this point in the history
  • Loading branch information
kenohassler authored Sep 13, 2023
1 parent 4368e9e commit ee1829d
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 16 deletions.
4 changes: 2 additions & 2 deletions src/AuFile.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down
4 changes: 2 additions & 2 deletions src/AudioData.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ void AudioDataImpl<Type, ValueType, SampleValueType>::read(BinaryIO *io, UWORD32
Data[i] = readValue(io);
}
}
} catch (BinaryInputError& e) {
} catch (BinaryInputError &e) {
switch (e.getType()) {
case BinaryInputError::FILE_ERR: {
throw SteghideError(
Expand Down Expand Up @@ -125,7 +125,7 @@ void AudioDataImpl<Type, ValueType, SampleValueType>::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(
Expand Down
8 changes: 4 additions & 4 deletions src/BmpFile.cc
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ void BmpFile::readheaders() {
break;
}
}
} catch (BinaryInputError& e) {
} catch (BinaryInputError &e) {
switch (e.getType()) {
case BinaryInputError::FILE_ERR: {
throw SteghideError(
Expand Down Expand Up @@ -688,7 +688,7 @@ void BmpFile::writeheaders() {
break;
}
}
} catch (BinaryOutputError& e) {
} catch (BinaryOutputError &e) {
switch (e.getType()) {
case BinaryOutputError::FILE_ERR: {
throw SteghideError(
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -865,7 +865,7 @@ void BmpFile::writedata() {
for (std::vector<unsigned char>::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(
Expand Down
3 changes: 2 additions & 1 deletion src/Embedder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
8 changes: 4 additions & 4 deletions src/WavFile.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -330,7 +330,7 @@ void WavFile::readheaders() {
}

datachhdr = chhdr;
} catch (BinaryInputError& e) {
} catch (BinaryInputError &e) {
switch (e.getType()) {
case BinaryInputError::FILE_ERR: {
throw SteghideError(
Expand Down Expand Up @@ -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(
Expand Down
4 changes: 1 addition & 3 deletions tests/steghide/MCryptPPTest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,4 @@ bool MCryptPPTest::genericTestEncryption() {
return true;
}

bool MCryptPPTest::genericTestDecryption() {
return true;
}
bool MCryptPPTest::genericTestDecryption() { return true; }

0 comments on commit ee1829d

Please sign in to comment.