add noexcepts (#2119)

Co-authored-by: Bart Louwers <bart@emeel.net>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Bart Louwers <bart.louwers@gmail.com>
This commit is contained in:
Tim Sylvester
2024-04-08 08:39:18 -07:00
committed by GitHub
parent f868e0806f
commit 705bdfb3de
128 changed files with 1135 additions and 990 deletions

View File

@@ -5,7 +5,7 @@
namespace mbgl {
namespace util {
float interpolationFactor(float base, Range<float> range, float z) {
float interpolationFactor(float base, Range<float> range, float z) noexcept {
const float zoomDiff = range.max - range.min;
const float zoomProgress = z - range.min;
if (zoomDiff == 0) {