diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-01-17 10:11:50 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-01-17 10:11:50 +0300 |
commit | 192940e8c2c86613e4cdca82ad772aa210fc96e0 (patch) | |
tree | 5013bcc1e23183eeffc93c92b28b6041d8acb806 /source/blender/editors/space_text/text_format_pov_ini.c | |
parent | 61072f08193c44ef345d2513a787e9614ba7c507 (diff) |
Cleanup: bad brace placement for manually formatted blocks
Diffstat (limited to 'source/blender/editors/space_text/text_format_pov_ini.c')
-rw-r--r-- | source/blender/editors/space_text/text_format_pov_ini.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/editors/space_text/text_format_pov_ini.c b/source/blender/editors/space_text/text_format_pov_ini.c index b349b38e551..08f6d10ac6d 100644 --- a/source/blender/editors/space_text/text_format_pov_ini.c +++ b/source/blender/editors/space_text/text_format_pov_ini.c @@ -91,8 +91,8 @@ static int txtfmt_ini_find_keyword(const char *string) } else if (STR_LITERAL_STARTSWITH(string, "P", len)) { i = len; } else if (STR_LITERAL_STARTSWITH(string, "T", len)) { i = len; - } else { i = 0; -} + } else { i = 0; + } /* clang-format on */ @@ -304,8 +304,8 @@ static int txtfmt_ini_find_reserved(const char *string) } else if (STR_LITERAL_STARTSWITH(string, "sint32be", len)) { i = len; } else if (STR_LITERAL_STARTSWITH(string, "sint32le", len)) { i = len; - } else { i = 0; -} + } else { i = 0; + } /* clang-format on */ @@ -335,8 +335,8 @@ static int txtfmt_ini_find_bool(const char *string) } else if (STR_LITERAL_STARTSWITH(string, "%k", len)) { i = len; } else if (STR_LITERAL_STARTSWITH(string, "%h", len)) { i = len; } else if (STR_LITERAL_STARTSWITH(string, "%w", len)) { i = len; - } else { i = 0; -} + } else { i = 0; + } /* clang-format on */ @@ -483,7 +483,7 @@ static void txtfmt_pov_ini_format_line(SpaceText *st, TextLine *line, const bool /* Special vars(v) or built-in keywords(b) */ /* keep in sync with 'txtfmt_ini_format_identifier()' */ - if ((i = txtfmt_ini_find_keyword(str)) != -1) { prev = FMT_TYPE_KEYWORD; + if ((i = txtfmt_ini_find_keyword(str)) != -1) { prev = FMT_TYPE_KEYWORD; } else if ((i = txtfmt_ini_find_reserved(str)) != -1) { prev = FMT_TYPE_RESERVED; } |