subsurface/profile-widget
Berthold Stoeger 360f07e453 Cleanup: pass gasmix by value
In a previous commit, the get_gasmix_* functions were changed to
return by value. For consistency, also pass gasmix by value.

Note that on common 64-bit platforms struct gasmix is the size
of a pointer [2 * 32 bit vs. 64 bit] and therefore uses the
same space on the stack. On 32-bit platforms, the stack use
is probably doubled, but in return a dereference is avoided.

Supporting arbitrary gas-mixes (H2, Ar, ...) will be such an
invasive change that going back to pointers is probably the
least of our worries.

This commit is a step in const-ifying input parameters (passing
by value is the ultimate way of signaling that the input parameter
will not be changed [unless there are references to said parameter]).

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2018-08-23 05:16:38 -07:00
..
animationfunctions.cpp profile-widget: remove SettingsObjectWrapper and update qPref calls 2018-08-15 16:11:39 -07:00
animationfunctions.h Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
CMakeLists.txt Correctly handle SubsurfaceMobile 2016-01-08 08:04:24 -08:00
divecartesianaxis.cpp profile-widget: remove SettingsObjectWrapper and update qPref calls 2018-08-15 16:11:39 -07:00
divecartesianaxis.h Cleanup: replace virtual by override where appropriate 2018-07-31 11:02:34 +02:00
diveeventitem.cpp Cleanup: pass gasmix by value 2018-08-23 05:16:38 -07:00
diveeventitem.h Cleanup: pass gasmix by value 2018-08-23 05:16:38 -07:00
divelineitem.cpp Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
divelineitem.h Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
divepixmapitem.cpp Dive video: paint duration-bar above thumbnail in profile plot 2018-07-23 15:58:55 -07:00
divepixmapitem.h Cleanup: remove all override modifiers 2018-08-01 06:30:00 -07:00
diveprofileitem.cpp Cleanup: pass gasmix by value 2018-08-23 05:16:38 -07:00
diveprofileitem.h Cleanup: remove all override modifiers 2018-08-01 06:30:00 -07:00
diverectitem.cpp Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
diverectitem.h Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
divetextitem.cpp Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
divetextitem.h Add SPDX header to profile widgets 2017-04-29 13:32:55 -07:00
divetooltipitem.cpp profile-widget: remove SettingsObjectWrapper and update qPref calls 2018-08-15 16:11:39 -07:00
divetooltipitem.h Cleanup: replace virtual by override where appropriate 2018-07-31 11:02:34 +02:00
profilewidget2.cpp Cleanup: pass gasmix by value 2018-08-23 05:16:38 -07:00
profilewidget2.h Cleanup: remove all override modifiers 2018-08-01 06:30:00 -07:00
qmlprofile.cpp profile: make profile self contained 2018-06-09 17:16:53 +02:00
qmlprofile.h profile: make profile self contained 2018-06-09 17:16:53 +02:00
ruleritem.cpp profile-widget: remove SettingsObjectWrapper and update qPref calls 2018-08-15 16:11:39 -07:00
ruleritem.h Cleanup: remove all override modifiers 2018-08-01 06:30:00 -07:00
tankitem.cpp Cleanup: pass gasmix by value 2018-08-23 05:16:38 -07:00
tankitem.h Cleanup: pass gasmix by value 2018-08-23 05:16:38 -07:00