Skip to content

Commit

Permalink
Please consider the following formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alibuild committed Jan 11, 2024
1 parent b41d10b commit 8fd15c8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Framework/Foundation/include/Framework/Signpost.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ struct o2_log_handle_t {
// Helper function which replaces engineering types with a printf
// compatible format string.
template <auto N>
constexpr auto remove_engineering_type(char const (&src)[N]) {
constexpr auto remove_engineering_type(char const (&src)[N])
{
std::array<char, N> res = {};
// do whatever string manipulation you want in res.
char *t = res.data();
char* t = res.data();
for (int i = 0; i < N; ++i) {
if (src[i] == '%' && src[i+1] == '{')
{
if (src[i] == '%' && src[i + 1] == '{') {
*t++ = src[i];
while (src[i] != '}' && src[i] != 0) {
++i;
Expand Down

0 comments on commit 8fd15c8

Please sign in to comment.