| | 252 | |
| | 253 | == *_ref() functions should return the ref'd object. == |
| | 254 | |
| | 255 | This makes them more convenient to use and results in less code. |
| | 256 | |
| | 257 | === Right === |
| | 258 | {{{ |
| | 259 | #!cpp |
| | 260 | EAPI Ewk_Web_Resource *ewk_web_resource_ref(Ewk_Web_Resource *resource); |
| | 261 | [...] |
| | 262 | resources.add(resourceID, ewk_web_resource_ref(ewkResource)); |
| | 263 | }}} |
| | 264 | === Wrong === |
| | 265 | {{{ |
| | 266 | #!cpp |
| | 267 | EAPI void ewk_web_resource_ref(Ewk_Web_Resource *resource); |
| | 268 | [...] |
| | 269 | ewk_web_resource_ref(ewkResource) |
| | 270 | resources.add(resourceID, ewkResource); |
| | 271 | }}} |