-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit 361d10a
Replaced the use of "new" in find_resource
- Addresses SonarCloud issue cpp:S5025 (Memory should not be managed manually)
- This function was not changed for the Windows port, but a similar
change to the one suggested was done in expandEnv in the same file.
- The first stream is not destructed at the exact same point it was in
the previous code (but rather when the second stream replaces it on
assignment to the same variable). An arbitrary scope could have been
introduced to destruct the object at the same place, but it doesn't
seem to be necessary and would make the code a bit strange.1 parent 0165d37 commit 361d10a
1 file changed
+4
-11
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
98 | 98 |
| |
99 | 99 |
| |
100 | 100 |
| |
101 | - | ||
102 | 101 |
| |
103 | 102 |
| |
104 | 103 |
| |
105 | - | ||
106 | - | ||
107 | - | ||
108 | - | ||
104 | + | ||
105 | + | ||
109 | 106 |
| |
110 | 107 |
| |
111 | 108 |
| |
112 | 109 |
| |
113 | - | ||
114 | 110 |
| |
115 | 111 |
| |
116 | 112 |
| |
| |||
121 | 117 |
| |
122 | 118 |
| |
123 | 119 |
| |
124 | - | ||
125 | - | ||
126 | - | ||
127 | - | ||
120 | + | ||
121 | + | ||
128 | 122 |
| |
129 | 123 |
| |
130 | 124 |
| |
131 | 125 |
| |
132 | - | ||
133 | 126 |
| |
134 | 127 |
| |
135 | 128 |
| |
|
0 commit comments