The purpose of this diff is to modernizing the code from kile and understand the architecture of kile. I'm still looking for small fix and looking for any introduced bug with this modification.
Change contains:
+ The use of the range based loop. I did it semi-automaticly with the help from clang-tidy.
+ Use of default keyword for empty constructor and destructor
+ Simplify some if condition. Ex: if (a) { return true; } else { return false; }
+ Use List::empty or QList::isEmpty instead of comparing the length with 0.
+ Rewrite the plain text to latex converter using QString::replace. Note: I will propably replace it later with a regex.
Notable modification are in:
+ src/plaintolatexconverter.cpp
+ src/kile.cpp:2536
Some strange/buggy code:
+ src/editorextention.cpp:267 allDeleted is always false