From: Michal MalĂ˝ Date: Wed, 31 Jul 2019 15:46:02 +0000 (+0200) Subject: Fix qCritical-related warnings X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=7bf82b5ddbf50b871946a9fc9ac513554fa1ea82;p=FFBChecker.git Fix qCritical-related warnings --- 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;