mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
284582d2e8
Since struct divecomputer is now fully C++ (i.e. cleans up after itself), we can simply turn the list of divecomputers into an std::vector<>. This makes the code quite a bit simpler, because the first divecomputer was actually a subobject. Yes, this makes the common case of a single divecomputer a little bit less efficient, but it really shouldn't matter. If it does, we can still write a special std::vector<>- like container that keeps the first element inline. This change makes pointers-to-divecomputers not stable. So always access the divecomputer via its index. As far as I can tell, most of the code already does this. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
23 lines
859 B
YAML
23 lines
859 B
YAML
AccessModifierOffset: -8 # so public: and private: stays at the left site
|
|
AlignEscapedNewlinesLeft: true
|
|
AllowAllParametersOfDeclarationOnNextLine: false
|
|
BinPackParameters: true
|
|
BreakBeforeBinaryOperators: false
|
|
BreakBeforeBraces: Linux
|
|
BreakBeforeTernaryOperators: false
|
|
BreakConstructorInitializersBeforeComma: false
|
|
ColumnLimit: 0
|
|
ConstructorInitializerAllOnOneLineOrOnePerLine: true
|
|
ConstructorInitializerIndentWidth: 8
|
|
ContinuationIndentWidth: 8
|
|
ForEachMacros: [ 'for_each_dive', 'for_each_line' ]
|
|
IndentFunctionDeclarationAfterType: false #personal taste, good for long methods
|
|
IndentWidth: 8
|
|
MaxEmptyLinesToKeep: 2
|
|
NamespaceIndentation: All
|
|
PointerBindsToType: false
|
|
SpaceBeforeAssignmentOperators: true
|
|
# SpaceBeforeParens doesn't work --> SpaceBeforeParens: ControlStatements
|
|
SpacesBeforeTrailingComments: 1
|
|
SpacesInParentheses: false
|
|
UseTab: Always
|