diff options
| author | Michele Bini <michele.bini@gmail.com> | 2022-06-10 21:15:27 (GMT) |
|---|---|---|
| committer | Michele Bini <michele.bini@gmail.com> | 2022-06-11 01:09:51 (GMT) |
| commit | 4d91012fcc8af48d3cf3f1cc6ab16c3f38a582a4 (patch) | |
| tree | ff4034c5c4a395607c6fe29b22d372f23dceb003 | |
| parent | d0a184a9e5dfd56a447f93c6e23715adb0738d0e (diff) | |
Inline parse float, since it's used only once
| -rw-r--r-- | src/displayapp/screens/Calculator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/displayapp/screens/Calculator.cpp b/src/displayapp/screens/Calculator.cpp index dd23059..979d12b 100644 --- a/src/displayapp/screens/Calculator.cpp +++ b/src/displayapp/screens/Calculator.cpp @@ -57,7 +57,7 @@ namespace { } }; - template <typename Input, typename Float, typename Sign> bool parseFloat(Input& i, Float& f, Sign& s) { + template <typename Input, typename Float, typename Sign> inline bool parseFloat(Input& i, Float& f, Sign& s) { f = 0; int8_t dot_position = -1; while (!i.empty()) { |
