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
@@ -22,21 +22,21 @@ YaPhysicalUIMapList::YaPhysicalUIMapList() noexcept {}
YaPhysicalUIMapList::YaPhysicalUIMapList(
const Steinberg::Vst::PhysicalUIMapList& list) noexcept
: maps(list.map, list.map + list.count) {}
: maps_(list.map, list.map + list.count) {}
Steinberg::Vst::PhysicalUIMapList YaPhysicalUIMapList::get() noexcept {
return Steinberg::Vst::PhysicalUIMapList{
.count = static_cast<Steinberg::uint32>(maps.size()),
.map = maps.data()};
.count = static_cast<Steinberg::uint32>(maps_.size()),
.map = maps_.data()};
}
void YaPhysicalUIMapList::write_back(
Steinberg::Vst::PhysicalUIMapList& list) const {
assert(list.count == maps.size());
assert(list.count == maps_.size());
// Write the note expression IDs as updated by the plugin (if the plugin
// updated them) back to the original list we've read from
for (Steinberg::uint32 i = 0; i < list.count; i++) {
list.map[i].noteExpressionTypeID = maps[i].noteExpressionTypeID;
list.map[i].noteExpressionTypeID = maps_[i].noteExpressionTypeID;
}
}