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
+7 -7
View File
@@ -72,9 +72,9 @@ class YaMessagePtr : public Steinberg::Vst::IMessage {
template <typename S>
void serialize(S& s) {
s.ext(message_id, bitsery::ext::InPlaceOptional{},
s.ext(message_id_, bitsery::ext::InPlaceOptional{},
[](S& s, std::string& id) { s.text1b(id, 1024); });
s.value8b(original_message_ptr);
s.value8b(original_message_ptr_);
}
private:
@@ -82,19 +82,19 @@ class YaMessagePtr : public Steinberg::Vst::IMessage {
* The implementation that comes with the SDK returns a null pointer when
* the ID has not yet been set, so we'll do the same thing.
*/
std::optional<std::string> message_id;
std::optional<std::string> message_id_;
/**
* The pointer to the message passed during the constructor, as a 64-bit
* unsigned integer. This way we can retrieve the original object after a
* round trip.
*/
native_size_t original_message_ptr = 0;
native_size_t original_message_ptr_ = 0;
/**
* An empty attribute list, in case the host checks this for some reason.
*/
YaAttributeList attribute_list;
YaAttributeList attribute_list_;
};
/**
@@ -138,7 +138,7 @@ class YaMessage : public Steinberg::Vst::IMessage {
* The implementation that comes with the SDK returns a null pointer when
* the ID has not yet been set, so we'll do the same thing.
*/
std::optional<std::string> message_id;
std::optional<std::string> message_id_;
YaAttributeList attribute_list;
YaAttributeList attribute_list_;
};