mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-06-11 06:42:11 +02:00
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:
@@ -123,18 +123,18 @@ class Vst3ContextMenuProxy : public YaContextMenu {
|
||||
* Get the instance ID of the owner of this object.
|
||||
*/
|
||||
inline size_t owner_instance_id() const noexcept {
|
||||
return arguments.owner_instance_id;
|
||||
return arguments_.owner_instance_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the unique ID for this context menu.
|
||||
*/
|
||||
inline size_t context_menu_id() const noexcept {
|
||||
return arguments.context_menu_id;
|
||||
return arguments_.context_menu_id;
|
||||
}
|
||||
|
||||
private:
|
||||
ConstructArgs arguments;
|
||||
ConstructArgs arguments_;
|
||||
};
|
||||
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
Reference in New Issue
Block a user