mirror of
https://github.com/hyprwm/hyprwayland-scanner.git
synced 2024-11-08 06:35:58 +01:00
enum: use iface name as well if available
This commit is contained in:
parent
871bc88284
commit
d89eea7cd8
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ void parseXML(pugi::xml_document& doc) {
|
|||
for (auto& en : iface.children("enum")) {
|
||||
SEnum enum_;
|
||||
enum_.nameOriginal = en.attribute("name").as_string();
|
||||
enum_.name = camelize(PROTO_DATA.name + "_" + enum_.nameOriginal);
|
||||
enum_.name = camelize(ifc.name + "_" + enum_.nameOriginal);
|
||||
for (auto& entry : en.children("entry")) {
|
||||
auto VALUENAME = enum_.nameOriginal + "_" + entry.attribute("name").as_string();
|
||||
std::transform(VALUENAME.begin(), VALUENAME.end(), VALUENAME.begin(), ::toupper);
|
||||
|
|
Loading…
Reference in a new issue