Commit 8daa2ba
fix: 单例模式静态局部变量代码缺陷
《Effective C++》中Singleton写法是reference-returning,非pointer-returning1 parent 077cec7 commit 8daa2ba
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
| 222 | + | |
223 | 223 | | |
224 | | - | |
| 224 | + | |
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| |||
0 commit comments