diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-10-26 23:31:12 +0200 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2023-10-26 23:31:29 +0200 |
| commit | 0b408792c083eb64a5ca737bdbcb30b1d64042e9 (patch) | |
| tree | 51b791729ea8be5bb741088cba12c24a9c4034c5 /fluid/fluid.cxx | |
| parent | 8663b867497de6d370b9c8376c4bdfc909744663 (diff) | |
FLUID: Refactors MergeBack
* moved functionality into its own files
* refactored all methods to be less than a page
* documented all calls
* tested all situations I could think of
Diffstat (limited to 'fluid/fluid.cxx')
| -rw-r--r-- | fluid/fluid.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/fluid/fluid.cxx b/fluid/fluid.cxx index eaaaa53f0..e8a106d64 100644 --- a/fluid/fluid.cxx +++ b/fluid/fluid.cxx @@ -27,6 +27,7 @@ #include "undo.h" #include "file.h" #include "code.h" +#include "mergeback.h" #include "alignment_panel.h" #include "function_panel.h" @@ -1284,13 +1285,9 @@ int mergeback_code_files() return 0; } - // -- generate the file names with absolute paths - Fd_Code_Writer f; Fl_String code_filename = g_project.codefile_path() + g_project.codefile_name(); - - // -- write the code and header files if (!batch_mode) enter_project_dir(); - int c = f.merge_back(code_filename.c_str(), FD_MERGEBACK_INTERACTIVE); + int c = merge_back(code_filename, FD_MERGEBACK_INTERACTIVE); if (!batch_mode) leave_project_dir(); if (c==0) fl_message("MergeBack found no external modifications\n" "in the source code."); |
