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
+6 -6
View File
@@ -50,11 +50,11 @@ constexpr unsigned int juce_message_id = WM_USER + 123;
HostBridge::HostBridge(MainContext& main_context,
boost::filesystem::path plugin_path,
pid_t parent_pid)
: plugin_path(plugin_path),
main_context(main_context),
generic_logger(Logger::create_wine_stderr()),
parent_pid(parent_pid),
watchdog_guard(main_context.register_watchdog(*this)) {}
: plugin_path_(plugin_path),
main_context_(main_context),
generic_logger_(Logger::create_wine_stderr()),
parent_pid_(parent_pid),
watchdog_guard_(main_context.register_watchdog(*this)) {}
HostBridge::~HostBridge() noexcept {}
@@ -81,7 +81,7 @@ void HostBridge::shutdown_if_dangling() {
// `recv()`), then we'll close the sockets here so that the plugin bridge
// exits gracefully. This will be periodically called from `MainContext`'s
// watchdog thread.
if (!pid_running(parent_pid)) {
if (!pid_running(parent_pid_)) {
std::cerr << "WARNING: The native plugin host seems to have died."
<< std::endl;
std::cerr << " This bridge will shut down now." << std::endl;