mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 10:46:04 +03:00
Fix internal conflicts in CODING_GUIDELINES.md.
This commit is contained in:
parent
74fcee2d7d
commit
187180f986
1 changed files with 18 additions and 14 deletions
|
@ -59,13 +59,17 @@ default:
|
|||
|
||||
#### c. Blocks in switch's case labels ####
|
||||
```c++
|
||||
switch (var)
|
||||
switch (var) {
|
||||
case 1: {
|
||||
//declare local variables
|
||||
//code
|
||||
}
|
||||
case 2:
|
||||
break;
|
||||
case 2: {
|
||||
//declare local variables
|
||||
//code
|
||||
}
|
||||
break;
|
||||
default:
|
||||
//code
|
||||
}
|
||||
|
@ -93,7 +97,7 @@ if (condition)
|
|||
a = a + b;
|
||||
```
|
||||
|
||||
One acceptable exception to this **can be** `return` or `break` statements, provided that the test condition isn't very long. However you can choose to use the first rule instead.
|
||||
One acceptable exception to this **can be** `return`, `break` or `continue` statements, provided that the test condition isn't very long. However you can choose to use the first rule instead.
|
||||
```c++
|
||||
a = myFunction();
|
||||
b = a * 1500;
|
||||
|
|
Loading…
Reference in a new issue