Change the naming scheme for class field members

I'm not a fan of Hungarian notation, but C++ kind of needs it with its
implicit `this`. And of all the common options for this, I find
suffixing members with an underscore the least offensive one.
This commit is contained in:
Robbert van der Helm
2022-01-01 21:07:17 +01:00
parent e0ab24e645
commit 0b9a16cf40
169 changed files with 2448 additions and 2405 deletions
+4 -4
View File
@@ -35,7 +35,7 @@ class Vst3Logger {
/**
* @see Logger::log
*/
inline void log(const std::string& message) { logger.log(message); }
inline void log(const std::string& message) { logger_.log(message); }
/**
* Log calls to `FUnknown::queryInterface`. This will separately log about
@@ -350,10 +350,10 @@ class Vst3Logger {
*/
template <invocable_returning<std::string> F>
inline void log_trace(F&& fn) {
logger.log_trace(std::forward<F>(fn));
logger_.log_trace(std::forward<F>(fn));
}
Logger& logger;
Logger& logger_;
private:
/**
@@ -367,7 +367,7 @@ class Vst3Logger {
bool log_request_base(bool is_host_vst,
Logger::Verbosity min_verbosity,
F callback) {
if (logger.verbosity >= min_verbosity) [[unlikely]] {
if (logger_.verbosity_ >= min_verbosity) [[unlikely]] {
std::ostringstream message;
if (is_host_vst) {
message << "[host -> vst] >> ";