Skip to content

Commit 0491ccb

Browse files
committed
Remove superfluous newlines
1 parent 34d6c79 commit 0491ccb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CppCoreGuidelines.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5696,6 +5696,7 @@ Interfaces should normally be composed entirely of public pure virtual functions
56965696
The `Derived` is `delete`d through its `Goof` interface, so its `string` is leaked.
56975697
Give `Goof` a virtual destructor and all is well.
56985698

5699+
56995700
##### Enforcement
57005701

57015702
* Warn on any class that contains data members and also has an overridable (non-`final`) virtual function.
@@ -6113,6 +6114,7 @@ However, misuses are (or at least has been) far more common.
61136114

61146115
Flag uses of `final`.
61156116

6117+
61166118
## <a name="Rh-virtual-default-arg"></a>C.140: Do not provide different default arguments for a virtual function and an overrider
61176119

61186120
##### Reason
@@ -9630,6 +9632,7 @@ In general, don't complicate your code without reason (??)
96309632
Never write `return move(local_variable);`, because the language already knows the variable is a move candidate.
96319633
Writing `move` in this code won't help, and can actually be detrimental because on some compilers it interferes with RVO (the return value optimization) by creating an additional reference alias to the local variable.
96329634

9635+
96339636
##### Example, bad
96349637

96359638
vector<int> v = std::move(make_vector()); // bad; the std::move is entirely redundant

0 commit comments

Comments
 (0)