Skip to content

Commit

Permalink
fix qt 6.6 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
EndrII committed Oct 28, 2023
1 parent a8678a5 commit 98f9054
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Patronum/src/Private/controllerprivate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ void ControllerPrivate::handleReceve(QByteArray data) {
return;
}

for (const auto& pkg: qAsConst(packages)) {
for (const auto& pkg: std::as_const(packages)) {
if (!pkg.isValid()) {

QuasarAppUtils::Params::log("Received invalid package!",
Expand Down
2 changes: 1 addition & 1 deletion Patronum/src/Private/serviceprivate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ void ServicePrivate::handleReceve(QByteArray data) {
return;
}

for (const auto &pkg: qAsConst(packages)) {
for (const auto &pkg: std::as_const(packages)) {
if (!pkg.isValid()) {
QuasarAppUtils::Params::log("receive package is not valid!",
QuasarAppUtils::Warning);
Expand Down

0 comments on commit 98f9054

Please sign in to comment.