Skip to content
  • Andi Clemens's avatar
    Adapt digiKam coding style guides: · b5c27bf8
    Andi Clemens authored
    This is a huge patch to finally have a common coding style in the source code.
    This patch adds:
    - curly brackets to all single line statements
    - left pointer / reference operator style (char* bla)
    - indent 4 spaces
    - convert tab -> spaces
    
    I did not change the libs from 3rdparty and the ones from libs/jpegutils.
    Code compiles fine under Linux, there shouldn't be code breakage because we
    only reformat the code and add missing brackets. If code is broken now (logic
    errors due to missing brackets), it was broken before.
    
    I add this as one single patch so we can easily revert it, if needed.
    I think it is really important to have one common style in the code, and that
    we don't mix it.
    
    I will also add some comments to the HACKING file later on.
    
    Gilles,
    if all compiles fine under Windows and Mac, I'd like to do the same for the
    GSoC branch, so that changes from trunk are easier to apply to the branch.
    
    Andi
    
    CCMAIL:digikam-devel@kde.org
    
    svn path=/trunk/extragear/graphics/digikam/; revision=1198777
    b5c27bf8