Cppcheck warnings.

This commit is contained in:
Roman Telezhynskyi 2022-11-10 11:55:50 +02:00
parent 57c85f97e6
commit 2e835c2af2
2 changed files with 2 additions and 0 deletions

View File

@ -37,6 +37,7 @@
QT_WARNING_PUSH QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Weffc++") QT_WARNING_DISABLE_GCC("-Weffc++")
// cppcheck-suppress unknownMacro
QT_WARNING_DISABLE_GCC("-Wnon-virtual-dtor") QT_WARNING_DISABLE_GCC("-Wnon-virtual-dtor")
QT_WARNING_DISABLE_CLANG("-Wnon-virtual-dtor") QT_WARNING_DISABLE_CLANG("-Wnon-virtual-dtor")

View File

@ -1113,6 +1113,7 @@ VPassmark VPiece::CreatePassmark(const QVector<VPieceNode> &path, int previousIn
passmarkData.id = path.at(passmarkIndex).GetId(); passmarkData.id = path.at(passmarkIndex).GetId();
passmarkData.globalPassmarkLength = ToPixel(GlobalPassmarkLength(data), *data->GetPatternUnit()); passmarkData.globalPassmarkLength = ToPixel(GlobalPassmarkLength(data), *data->GetPatternUnit());
// cppcheck-suppress unknownMacro
QT_WARNING_POP QT_WARNING_POP
return VPassmark(passmarkData); return VPassmark(passmarkData);