diff options
author | Ivan Komissarov <abbapoh@gmail.com> | 2020-05-14 18:49:05 +0200 |
---|---|---|
committer | Ivan Komissarov <ABBAPOH@gmail.com> | 2020-05-25 08:59:04 +0000 |
commit | ff61ba1702644bd558ba5d65821b885d39a21e1d (patch) | |
tree | 3938f243e9126bf1163cce06264ca46b02132ebf /doc/reference/modules/qbs-module.qdoc | |
parent | 6bba36e5e76820409bd3afad5da6883a79f79904 (diff) |
ProjectData: return const values/references
Qbs does not care that much about binary compatilibity (because of qbs
session) and thus is is preferable to return members by const-ref
(saving 2 atomic operations and preventing from accidental detaches). In
case when method needs to compute some value instead of returning member
directly, the function signature can be changed.
Change-Id: I4e8d228761a990d274e77652c94adf9f43a758f1
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'doc/reference/modules/qbs-module.qdoc')
0 files changed, 0 insertions, 0 deletions