Commit b110c81
Make *Observer::getUnderlyingObserver return a reference
Summary: Returning by reference is safe and is cheaper. Observer API is richer (e.g. needsRefresh) and if someone needs access to it it's useful to avoid a copy.
Reviewed By: wangyishuo123
Differential Revision: D70140149
fbshipit-source-id: 2aba0bf34606207aadbc5740910c0b1902fd5a3b1 parent 431af35 commit b110c81
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
363 | | - | |
| 363 | + | |
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
| |||
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
382 | | - | |
| 382 | + | |
383 | 383 | | |
384 | 384 | | |
385 | 385 | | |
| |||
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
400 | | - | |
| 400 | + | |
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
| |||
0 commit comments