mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-25 15:18:23 +00:00
Minor fixes in coding style guide
This commit is contained in:
parent
11184b453f
commit
9f552598ff
@ -54,6 +54,7 @@ void function_with_short_args(int arg1, const int arg2, const int arg3, ...)
|
||||
// You can use braces {} if the condition has multiple lines
|
||||
// or the if-body has multiple lines.
|
||||
if (condition1 || condition2) {
|
||||
...
|
||||
return;
|
||||
}
|
||||
|
||||
@ -61,9 +62,6 @@ void function_with_short_args(int arg1, const int arg2, const int arg3, ...)
|
||||
...
|
||||
}
|
||||
|
||||
// We prefer to avoid whitespaces between "var=initial_value"
|
||||
// or "var<limit" to see better the "; " separation. Anyway it
|
||||
// can depend on the specific condition/case, etc.
|
||||
for (int i = 0; i < 10; ++i) {
|
||||
// Same case as in if-return.
|
||||
if (condition)
|
||||
|
Loading…
Reference in New Issue
Block a user