Revision 82a38dc...

Go back to digest for 27th November 2011

Other in KDE Base

Milian Wolff committed changes in [kate] /:

general cleanup of the codefolding code

- const& where applicable
- const methods where applicable
- less copies where needed, foreach e.g. does an implicit copy already
- pass const& instead of pointers where applicable
- reuse existing code, esp. for the decrement/incrementBy1
- less copies by using foo& = bla[x];
- introduce temporaries instead of repetitive calls to bla[]
also makes the code nicer to read
- give saner name to some temporaries, instead of 'tempFoo'
- some more assertions to make sure our assumptions on non-empty lists holds
- probably more

File Changes

Modified 3 files
  •   part/document/katebuffer.cpp
  •   part/syntax/katecodefolding.cpp
  •   part/syntax/katecodefolding.h
3 files changed in total