diff options
author | Henning Gruendl <henning.gruendl@qt.io> | 2024-04-22 12:41:49 +0200 |
---|---|---|
committer | Henning Gruendl <henning.gruendl@qt.io> | 2024-04-22 12:44:10 +0200 |
commit | fa1818bb77f90b63e79d6fb1113d6224b71d8a0d (patch) | |
tree | 5dd1054f89e1e5b3f46a94d5affe1bc43ebf1646 | |
parent | aaeac1cb64713da1a4813177fc231efc18a4331b (diff) |
DesignEffects: Add return type
Add return type to clamp function to get rid of critical output message
about "coerced to void because the function called is insufficiently
annotated".
Change-Id: Idab8c9e9bb11817694103fd5974c5ad7b4e9cdd4
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
-rw-r--r-- | src/imports/designeffects/DesignEffectPrivate.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imports/designeffects/DesignEffectPrivate.qml b/src/imports/designeffects/DesignEffectPrivate.qml index f20b42b..ea50ee0 100644 --- a/src/imports/designeffects/DesignEffectPrivate.qml +++ b/src/imports/designeffects/DesignEffectPrivate.qml @@ -51,7 +51,7 @@ Item { Component.onCompleted: root.calculateBoundingBox() - function clamp(input : real, min : real, max : real) { + function clamp(input: real, min: real, max: real): real { if (isNaN(input)) return 0 |