Change naming convention from _member to member_ (fixes #1905)

Ported from 31ce648e63
This commit is contained in:
Benoit Blanchon
2023-04-21 18:53:16 +02:00
parent 5d796781fb
commit dd46813dc0
60 changed files with 789 additions and 786 deletions

View File

@ -12,21 +12,21 @@ class CustomWriter {
CustomWriter& operator=(const CustomWriter&) = delete;
size_t write(uint8_t c) {
_str.append(1, static_cast<char>(c));
str_.append(1, static_cast<char>(c));
return 1;
}
size_t write(const uint8_t* s, size_t n) {
_str.append(reinterpret_cast<const char*>(s), n);
str_.append(reinterpret_cast<const char*>(s), n);
return n;
}
const std::string& str() const {
return _str;
return str_;
}
private:
std::string _str;
std::string str_;
};
TEST_CASE("CustomWriter") {