From 7bf82b5ddbf50b871946a9fc9ac513554fa1ea82 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Mal=C3=BD?= Date: Wed, 31 Jul 2019 17:46:02 +0200 Subject: [PATCH] Fix qCritical-related warnings --- conditioneffectsettings.cpp | 2 +- constanteffectsettings.cpp | 2 +- envelopesettings.cpp | 2 +- linuxffbconditioneffect.cpp | 2 +- periodiceffectsettings.cpp | 2 +- rampeffectsettings.cpp | 2 +- rumbleeffectsettings.cpp | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/conditioneffectsettings.cpp b/conditioneffectsettings.cpp index 0676784..1e16d90 100644 --- a/conditioneffectsettings.cpp +++ b/conditioneffectsettings.cpp @@ -52,7 +52,7 @@ bool ConditionEffectSettings::fillFromParameters(const std::shared_ptr cdParams = std::dynamic_pointer_cast(params); return fillFromParameters(cdParams); } catch (std::bad_cast& ex) { - qCritical(ex.what()); + qCritical("%s\n", ex.what()); return false; } } diff --git a/constanteffectsettings.cpp b/constanteffectsettings.cpp index 555f87d..096242c 100644 --- a/constanteffectsettings.cpp +++ b/constanteffectsettings.cpp @@ -26,7 +26,7 @@ bool ConstantEffectSettings::fillFromParameters(const std::shared_ptrqle_level->setText(QString::number(cfParams->level)); return ui->qwid_envelope->fillFromParameters(params); } catch (std::bad_cast& ex) { - qCritical(ex.what()); + qCritical("%s\n", ex.what()); return false; } return false; diff --git a/envelopesettings.cpp b/envelopesettings.cpp index 14cd0e2..d5e0bb2 100644 --- a/envelopesettings.cpp +++ b/envelopesettings.cpp @@ -39,7 +39,7 @@ bool EnvelopeSettings::fillFromParameters(const std::shared_ptrqle_fadeLevel->setText(QString::number(envParams->fadeLevel)); return true; } catch (std::bad_cast& ex) { - qCritical(ex.what()); + qCritical("%s\n", ex.what()); return false; } return false; diff --git a/linuxffbconditioneffect.cpp b/linuxffbconditioneffect.cpp index dfe6ebf..582b9f2 100644 --- a/linuxffbconditioneffect.cpp +++ b/linuxffbconditioneffect.cpp @@ -50,7 +50,7 @@ bool LinuxFFBConditionEffect::setParameters(const std::shared_ptr(params)); } catch (const std::bad_cast& ex) { - qCritical(ex.what()); + qCritical("%s\n", ex.what()); return false; } return false; diff --git a/periodiceffectsettings.cpp b/periodiceffectsettings.cpp index 68d7b6b..a518021 100644 --- a/periodiceffectsettings.cpp +++ b/periodiceffectsettings.cpp @@ -31,7 +31,7 @@ bool PeriodicEffectSettings::fillFromParameters(const std::shared_ptrqle_phase->setText(QString::number(pParams->phase)); return ui->qwid_envelope->fillFromParameters(pParams); } catch (std::bad_cast& ex) { - qCritical(ex.what()); + qCritical("%s\n", ex.what()); return false; } return false; diff --git a/rampeffectsettings.cpp b/rampeffectsettings.cpp index 4152073..36b942d 100644 --- a/rampeffectsettings.cpp +++ b/rampeffectsettings.cpp @@ -32,7 +32,7 @@ bool RampEffectSettings::fillFromParameters(const std::shared_ptrqle_startLevel->setText(QString::number(rfParams->startLevel)); return ui->qwid_envelope->fillFromParameters(params); } catch (std::bad_cast& ex) { - qCritical(ex.what()); + qCritical("%s\n", ex.what()); return false; } return false; diff --git a/rumbleeffectsettings.cpp b/rumbleeffectsettings.cpp index 19e0c78..0d7bd0d 100644 --- a/rumbleeffectsettings.cpp +++ b/rumbleeffectsettings.cpp @@ -17,7 +17,7 @@ bool RumbleEffectSettings::fillFromParameters(const std::shared_ptrqle_weakMag->setText(QString::number(ruParams->weakMagnitude)); return true; } catch (std::bad_cast& ex) { - qCritical(ex.what()); + qCritical("%s\n", ex.what()); return false; } return false; -- 2.43.5