subsurface/core
Berthold Stoeger 408b31b6ce core: default initialize units-type objects to 0
Makes the code much nicer to read.

Default initialize cylinder_t to the empty cylinder.

This produces lots of warnings, because most structure are now
not PODs anymore and shouldn't be erased using memset().

These memset()s will be removed one-by-one and replaced by
proper constructors.

The whole ordeal made it necessary to add a constructor to
struct event. To simplify things the whole optimization of
the variable-size event names was removed. In upcoming commits
this will be replaced by std::string anyway.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2024-08-13 19:28:30 +02:00
..
settings
subsurface-qt
android.cpp general: remove (void) function parameter declarations 2024-08-13 19:28:30 +02:00
btdiscovery.cpp import: turn C-string in device_data_t into std::strings 2024-08-13 19:28:30 +02:00
btdiscovery.h import: turn C-string in device_data_t into std::strings 2024-08-13 19:28:30 +02:00
checkcloudconnection.cpp build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
checkcloudconnection.h
cloudstorage.cpp Replace qDebug() by report_info() in core/cloudstorage.cpp 2024-04-23 07:47:11 +07:00
cloudstorage.h mobile: add ability to delete cloud account 2022-08-13 14:08:37 -07:00
CMakeLists.txt core: convert picture.c to C++ 2024-08-13 19:28:30 +02:00
cochran.cpp core: default initialize units-type objects to 0 2024-08-13 19:28:30 +02:00
cochran.h
color.cpp
color.h
compressibility.r
configuredivecomputer.cpp import: turn C-string in device_data_t into std::strings 2024-08-13 19:28:30 +02:00
configuredivecomputer.h computer configuration: use value semantics for DeviceDetails 2024-03-24 17:53:19 +01:00
configuredivecomputerthreads.cpp computer configuration: use value semantics for DeviceDetails 2024-03-24 17:53:19 +01:00
configuredivecomputerthreads.h computer configuration: use value semantics for DeviceDetails 2024-03-24 17:53:19 +01:00
connectionlistmodel.cpp
connectionlistmodel.h
datatrak.cpp core: default initialize units-type objects to 0 2024-08-13 19:28:30 +02:00
datatrak.h core: turn a memblock in the parser to std::string 2024-03-10 11:01:42 +13:00
deco.cpp build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
deco.h build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
device.cpp build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
device.h build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
devicedetails.cpp computer configuration: use value semantics for DeviceDetails 2024-03-24 17:53:19 +01:00
devicedetails.h computer configuration: use value semantics for DeviceDetails 2024-03-24 17:53:19 +01:00
dive.cpp core: default initialize units-type objects to 0 2024-08-13 19:28:30 +02:00
dive.h general: remove (void) function parameter declarations 2024-08-13 19:28:30 +02:00
divecomputer.cpp build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
divecomputer.h build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
divefilter.cpp
divefilter.h
divelist.cpp build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
divelist.h build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
divelog.cpp build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
divelog.h build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
divelogexportlogic.cpp core: C++-ify statistics.c 2024-08-13 19:28:30 +02:00
divelogexportlogic.h
divemode.h
divesite.cpp core: convert divesite strings to std::string 2024-08-13 19:28:30 +02:00
divesite.h core: default initialize units-type objects to 0 2024-08-13 19:28:30 +02:00
divesitehelpers.cpp core: convert taxonomy.c to C++ 2024-08-13 19:28:30 +02:00
divesitehelpers.h
downloadfromdcthread.cpp import: turn C-string in device_data_t into std::strings 2024-08-13 19:28:30 +02:00
downloadfromdcthread.h uemis: replace C-strings by std::string and std::string_view 2024-08-13 19:28:30 +02:00
equipment.cpp core: default initialize units-type objects to 0 2024-08-13 19:28:30 +02:00
equipment.h core: default initialize units-type objects to 0 2024-08-13 19:28:30 +02:00
errorhelper.cpp core: port errorhelper.c to C++ 2024-04-23 07:47:11 +07:00
errorhelper.h build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
event.cpp core: default initialize units-type objects to 0 2024-08-13 19:28:30 +02:00
event.h core: default initialize units-type objects to 0 2024-08-13 19:28:30 +02:00
eventtype.cpp build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
eventtype.h general: remove (void) function parameter declarations 2024-08-13 19:28:30 +02:00
exif.cpp
exif.h
extradata.h
file.cpp build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
file.h build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
filterconstraint.cpp build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
filterconstraint.h build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
filterpreset.cpp general: remove (void) function parameter declarations 2024-08-13 19:28:30 +02:00
filterpreset.h general: remove (void) function parameter declarations 2024-08-13 19:28:30 +02:00
format.cpp core: remove put_format_loc() 2024-05-31 18:55:47 +02:00
format.h core: remove __cplusplus ifdefs 2024-08-13 19:28:30 +02:00
fulltext.cpp build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
fulltext.h build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
gas-model.cpp core: convert gas-model.c to C++ 2024-08-13 19:28:30 +02:00
gas.cpp core: default initialize units-type objects to 0 2024-08-13 19:28:30 +02:00
gas.h build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
gaspressures.cpp profile: C++-ify plot_info 2024-08-13 19:28:30 +02:00
gaspressures.h core: remove __cplusplus ifdefs 2024-08-13 19:28:30 +02:00
gettext.h build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
gettextfromc.cpp build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
gettextfromc.h build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
git-access.cpp build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
git-access.h general: remove (void) function parameter declarations 2024-08-13 19:28:30 +02:00
globals.cpp core: add class that collects global objects to be deleted on exit 2022-03-16 13:06:06 -07:00
globals.h core: add class that collects global objects to be deleted on exit 2022-03-16 13:06:06 -07:00
imagedownloader.cpp core: default initialize units-type objects to 0 2024-08-13 19:28:30 +02:00
imagedownloader.h
import-cobalt.cpp build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
import-csv.cpp core: default initialize units-type objects to 0 2024-08-13 19:28:30 +02:00
import-csv.h build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
import-divinglog.cpp build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
import-seac.cpp build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
import-shearwater.cpp build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
import-suunto.cpp build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
interpolate.h
ios.cpp general: remove (void) function parameter declarations 2024-08-13 19:28:30 +02:00
libdivecomputer.cpp core: default initialize units-type objects to 0 2024-08-13 19:28:30 +02:00
libdivecomputer.h build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
liquivision.cpp core: default initialize units-type objects to 0 2024-08-13 19:28:30 +02:00
load-git.cpp core: default initialize units-type objects to 0 2024-08-13 19:28:30 +02:00
macos.cpp general: remove (void) function parameter declarations 2024-08-13 19:28:30 +02:00
membuffer.cpp general: remove (void) function parameter declarations 2024-08-13 19:28:30 +02:00
membuffer.h build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
metadata.cpp build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
metadata.h build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
metrics.cpp
metrics.h
namecmp.h core: remove __cplusplus ifdefs 2024-08-13 19:28:30 +02:00
ostctools.cpp build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
owning_ptrs.h core: default initialize units-type objects to 0 2024-08-13 19:28:30 +02:00
parse-gpx.cpp cleanup: replace fprintf to stderr by report_info() 2024-04-23 07:47:11 +07:00
parse-gpx.h
parse-xml.cpp core: default initialize units-type objects to 0 2024-08-13 19:28:30 +02:00
parse.cpp core: default initialize units-type objects to 0 2024-08-13 19:28:30 +02:00
parse.h core: default initialize units-type objects to 0 2024-08-13 19:28:30 +02:00
picture.cpp core: convert picture.c to C++ 2024-08-13 19:28:30 +02:00
picture.h core: default initialize units-type objects to 0 2024-08-13 19:28:30 +02:00
pictureobj.cpp
pictureobj.h
planner.cpp core: default initialize units-type objects to 0 2024-08-13 19:28:30 +02:00
planner.h build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
plannernotes.cpp build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
pref.cpp general: remove (void) function parameter declarations 2024-08-13 19:28:30 +02:00
pref.h general: remove (void) function parameter declarations 2024-08-13 19:28:30 +02:00
profile.cpp build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
profile.h core: default initialize units-type objects to 0 2024-08-13 19:28:30 +02:00
qt-ble.cpp general: remove (void) function parameter declarations 2024-08-13 19:28:30 +02:00
qt-ble.h general: remove (void) function parameter declarations 2024-08-13 19:28:30 +02:00
qt-gui.h
qt-init.cpp Replace qDebug() by report_info() in qt-init.cpp 2024-04-23 07:47:11 +07:00
qthelper.cpp build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
qthelper.h build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
qtserialbluetooth.cpp build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
range.h
sample.cpp build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
sample.h build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
save-git.cpp build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
save-html.cpp core: convert divesite strings to std::string 2024-08-13 19:28:30 +02:00
save-html.h build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
save-profiledata.cpp profile: C++-ify plot_info 2024-08-13 19:28:30 +02:00
save-profiledata.h build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
save-xml.cpp build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
selection.cpp general: remove (void) function parameter declarations 2024-08-13 19:28:30 +02:00
selection.h general: remove (void) function parameter declarations 2024-08-13 19:28:30 +02:00
serial_ftdi.cpp general: remove (void) function parameter declarations 2024-08-13 19:28:30 +02:00
serial_usb_android.cpp Cleanup: Remove 'context' Reference from Logging Defines. 2024-05-16 16:39:48 +02:00
serial_usb_android.h
sha1.cpp core: C++-ify SHA1 interface 2024-08-13 19:28:30 +02:00
sha1.h core: remove __cplusplus ifdefs 2024-08-13 19:28:30 +02:00
ssrf.h build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
statistics.cpp core: default initialize units-type objects to 0 2024-08-13 19:28:30 +02:00
statistics.h core: default initialize units-type objects to 0 2024-08-13 19:28:30 +02:00
string-format.cpp core: convert taxonomy.c to C++ 2024-08-13 19:28:30 +02:00
string-format.h
strtod.cpp build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
structured_list.h
subsurface-float.h core: remove __cplusplus ifdefs 2024-08-13 19:28:30 +02:00
subsurface-string.cpp Use std::vector<string> instead of QStringList in main() 2024-04-23 07:47:11 +07:00
subsurface-string.h build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
subsurface-time.h build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
subsurfacestartup.cpp general: remove (void) function parameter declarations 2024-08-13 19:28:30 +02:00
subsurfacestartup.h general: remove (void) function parameter declarations 2024-08-13 19:28:30 +02:00
subsurfacesysinfo.cpp build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
subsurfacesysinfo.h build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
table.h core: convert divesite.c to C++ 2024-08-13 19:28:30 +02:00
tag.cpp build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
tag.h build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
taxonomy.cpp core: convert taxonomy.c to C++ 2024-08-13 19:28:30 +02:00
taxonomy.h core: remove __cplusplus ifdefs 2024-08-13 19:28:30 +02:00
time.cpp build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
trip.cpp general: remove (void) function parameter declarations 2024-08-13 19:28:30 +02:00
trip.h general: remove (void) function parameter declarations 2024-08-13 19:28:30 +02:00
uemis-downloader.cpp core: convert divesite strings to std::string 2024-08-13 19:28:30 +02:00
uemis.cpp core: convert divesite strings to std::string 2024-08-13 19:28:30 +02:00
uemis.h core: remove __cplusplus ifdefs 2024-08-13 19:28:30 +02:00
units.cpp build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
units.h core: default initialize units-type objects to 0 2024-08-13 19:28:30 +02:00
unix.cpp general: remove (void) function parameter declarations 2024-08-13 19:28:30 +02:00
uploadDiveLogsDE.cpp core: convert divesite strings to std::string 2024-08-13 19:28:30 +02:00
uploadDiveLogsDE.h core: remove __cplusplus ifdefs 2024-08-13 19:28:30 +02:00
uploadDiveShare.cpp core: enable compiler warngings for report_error and report_info 2024-03-12 10:31:07 -04:00
uploadDiveShare.h core: remove __cplusplus ifdefs 2024-08-13 19:28:30 +02:00
version.cpp general: remove (void) function parameter declarations 2024-08-13 19:28:30 +02:00
version.h general: remove (void) function parameter declarations 2024-08-13 19:28:30 +02:00
videoframeextractor.cpp core: default initialize units-type objects to 0 2024-08-13 19:28:30 +02:00
videoframeextractor.h
webservice.h general: remove (void) function parameter declarations 2024-08-13 19:28:30 +02:00
windows.cpp general: remove (void) function parameter declarations 2024-08-13 19:28:30 +02:00
windowtitleupdate.cpp build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
windowtitleupdate.h
worldmap-options.h
worldmap-save.cpp build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
worldmap-save.h build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
xmlparams.cpp build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
xmlparams.h build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
xmp_parser.cpp
xmp_parser.h