Skip to content

Commit

Permalink
Remove all brackes instead of replacing with ()
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer committed Jan 26, 2025
1 parent 94b91cd commit c08c558
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/osc/query/oscquerydescription.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@ T take_back(std::vector<T>* pVec) {
}

QString toOscAddress(const ConfigKey& key) {
QString groupWithoutBrackets = key.group.mid(1, key.group.size() - 2);
QString oscAddress = groupWithoutBrackets + QChar('/') + key.item;
oscAddress.replace(QChar('['), QChar('('));
oscAddress.replace(QChar(']'), QChar(')'));
QString oscAddress = key.group + key.item;
oscAddress.remove(QChar('['));
oscAddress.remove(QChar(']'));
oscAddress.replace(QChar('_'), QChar('/'));
return oscAddress;
}
Expand Down

0 comments on commit c08c558

Please sign in to comment.