]> Devoid-pointer.net GitWeb - FFBChecker.git/commitdiff
Fix qCritical-related warnings
authorMichal Malý <madcatxster@devoid-pointer.net>
Wed, 31 Jul 2019 15:46:02 +0000 (17:46 +0200)
committerMichal Malý <madcatxster@devoid-pointer.net>
Wed, 31 Jul 2019 15:46:02 +0000 (17:46 +0200)
conditioneffectsettings.cpp
constanteffectsettings.cpp
envelopesettings.cpp
linuxffbconditioneffect.cpp
periodiceffectsettings.cpp
rampeffectsettings.cpp
rumbleeffectsettings.cpp

index 067678449995b77dcd6ff150194a51ea8bfeea77..1e16d90a0fb984d28cc4e9cc5f1cae067433a855 100644 (file)
@@ -52,7 +52,7 @@ bool ConditionEffectSettings::fillFromParameters(const std::shared_ptr<FFBEffect
     const std::shared_ptr<FFBConditionEffectParameters> cdParams = std::dynamic_pointer_cast<FFBConditionEffectParameters>(params);
     return fillFromParameters(cdParams);
   } catch (std::bad_cast& ex) {
-    qCritical(ex.what());
+    qCritical("%s\n", ex.what());
     return false;
   }
 }
index 555f87dafd58cc1a3b51d5b8870a802c2be9dc0c..096242c55dee64e064c438f047be685b3c88cf45 100644 (file)
@@ -26,7 +26,7 @@ bool ConstantEffectSettings::fillFromParameters(const std::shared_ptr<FFBEffectP
     ui->qle_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;
index 14cd0e28e112607695b4614a4432bb7b2880555b..d5e0bb2c0fcc89c97e93a1f1b6079821bb03280c 100644 (file)
@@ -39,7 +39,7 @@ bool EnvelopeSettings::fillFromParameters(const std::shared_ptr<FFBEffectParamet
     ui->qle_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;
index dfe6ebf0345caf28ece94fa80fa215810ad0f7d0..582b9f2e32e6220866418458d792c546906f8c8d 100644 (file)
@@ -50,7 +50,7 @@ bool LinuxFFBConditionEffect::setParameters(const std::shared_ptr<FFBEffectParam
   try {
     return setParameters(std::dynamic_pointer_cast<FFBConditionEffectParameters>(params));
   } catch (const std::bad_cast& ex) {
-    qCritical(ex.what());
+    qCritical("%s\n", ex.what());
     return false;
   }
   return false;
index 68d7b6b7843ea01329da8194892fc27b05e44aa9..a518021250bdd828fa0f769065956770575edfa0 100644 (file)
@@ -31,7 +31,7 @@ bool PeriodicEffectSettings::fillFromParameters(const std::shared_ptr<FFBEffectP
     ui->qle_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;
index 41520739347ac88208a6294bc27db6ad4ab79f82..36b942dcce1a14b089811ebc8e2de669d36193a0 100644 (file)
@@ -32,7 +32,7 @@ bool RampEffectSettings::fillFromParameters(const std::shared_ptr<FFBEffectParam
     ui->qle_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;
index 19e0c786005e6800375bc485a557b409ba4a14b4..0d7bd0d7d956fd97450b9f57ded91b14a4d4e98f 100644 (file)
@@ -17,7 +17,7 @@ bool RumbleEffectSettings::fillFromParameters(const std::shared_ptr<FFBEffectPar
     ui->qle_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;