diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:17:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:21:24 +0300 |
commit | e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch) | |
tree | 8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/makesrna/intern/rna_text_api.c | |
parent | b3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (diff) |
ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211.
For details on usage and instructions for migrating branches
without conflicts, see:
https://wiki.blender.org/wiki/Tools/ClangFormat
Diffstat (limited to 'source/blender/makesrna/intern/rna_text_api.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_text_api.c | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/source/blender/makesrna/intern/rna_text_api.c b/source/blender/makesrna/intern/rna_text_api.c index 3ea10ea6c69..ad36a56ac6a 100644 --- a/source/blender/makesrna/intern/rna_text_api.c +++ b/source/blender/makesrna/intern/rna_text_api.c @@ -25,39 +25,40 @@ #include "RNA_define.h" -#include "rna_internal.h" /* own include */ +#include "rna_internal.h" /* own include */ #ifdef RNA_RUNTIME -#include "WM_api.h" -#include "WM_types.h" +# include "WM_api.h" +# include "WM_types.h" static void rna_Text_clear(Text *text) { - BKE_text_clear(text, NULL); - WM_main_add_notifier(NC_TEXT | NA_EDITED, text); + BKE_text_clear(text, NULL); + WM_main_add_notifier(NC_TEXT | NA_EDITED, text); } static void rna_Text_write(Text *text, const char *str) { - BKE_text_write(text, NULL, str); - WM_main_add_notifier(NC_TEXT | NA_EDITED, text); + BKE_text_write(text, NULL, str); + WM_main_add_notifier(NC_TEXT | NA_EDITED, text); } #else void RNA_api_text(StructRNA *srna) { - FunctionRNA *func; - PropertyRNA *parm; + FunctionRNA *func; + PropertyRNA *parm; - func = RNA_def_function(srna, "clear", "rna_Text_clear"); - RNA_def_function_ui_description(func, "clear the text block"); + func = RNA_def_function(srna, "clear", "rna_Text_clear"); + RNA_def_function_ui_description(func, "clear the text block"); - func = RNA_def_function(srna, "write", "rna_Text_write"); - RNA_def_function_ui_description(func, "write text at the cursor location and advance to the end of the text block"); - parm = RNA_def_string(func, "text", "Text", 0, "", "New text for this data-block"); - RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); + func = RNA_def_function(srna, "write", "rna_Text_write"); + RNA_def_function_ui_description( + func, "write text at the cursor location and advance to the end of the text block"); + parm = RNA_def_string(func, "text", "Text", 0, "", "New text for this data-block"); + RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); } #endif |