We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e520df commit 5ab90a8Copy full SHA for 5ab90a8
Framework/Foundation/include/Framework/Signpost.h
@@ -23,13 +23,13 @@ struct o2_log_handle_t {
23
// Helper function which replaces engineering types with a printf
24
// compatible format string.
25
template <auto N>
26
-constexpr auto remove_engineering_type(char const (&src)[N]) {
+constexpr auto remove_engineering_type(char const (&src)[N])
27
+{
28
std::array<char, N> res = {};
29
// do whatever string manipulation you want in res.
- char *t = res.data();
30
+ char* t = res.data();
31
for (int i = 0; i < N; ++i) {
- if (src[i] == '%' && src[i+1] == '{')
32
- {
+ if (src[i] == '%' && src[i + 1] == '{') {
33
*t++ = src[i];
34
while (src[i] != '}' && src[i] != 0) {
35
++i;
0 commit comments