Skip to content

Commit

Permalink
Use std::as_const()
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer committed Jan 25, 2025
1 parent a8209c0 commit 36821ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/osc/query/oscquerydescription.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void OscQueryDescription::addAddress(

// Create a list of QJsonObjects.
// Note: QJsonObject is only temporary helper class for writing a QJsonValue
for (const auto& pathPart : pathParts) {
for (const auto& pathPart : std::as_const(pathParts)) {
if (pathPart.isEmpty()) {
continue;
}
Expand Down Expand Up @@ -96,7 +96,7 @@ void OscQueryDescription::removeAddress(const QString& address) {

// Create a list of QJsonObjects.
// Note: QJsonObject is only temporary helper class for writing a QJsonValue
for (const auto& pathPart : pathParts) {
for (const auto& pathPart : std::as_const(pathParts)) {
if (pathPart.isEmpty()) {
continue;
}
Expand Down

0 comments on commit 36821ff

Please sign in to comment.