subsurface/core
Berthold Stoeger b82fdd1d20 general: remove (void) function parameter declarations
To my understanding, declaring empty parameter lists using "(void)"
is an artifact from the bad old K&R times, when functions were
declared without(!) parameters. Which in hindsight was an absolute
recipe for disaster. So for backwards compatibility, functions
without parameters had to be declared using "(void)" as "()"
could also mean "any function".

That was 40 years ago. Meanwhile, C++ introduced references,
which made it a necessity to declare the function parameters.
So "(void)" is redundant and inconsistent in C++ code and
just makes no sense.

Remove it.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2024-08-13 19:28:30 +02:00
..
settings Equipment: Include Unused Tanks in Merge if Preference is Enabled. 2023-07-25 11:19:03 +12:00
subsurface-qt selection: move dive selection, current dive and dc through signals 2023-04-16 20:23:59 +02:00
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: try alternative server if first connection fails 2021-04-19 12:51:01 -07:00
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: replace SHA1() function by SHA1_uint32() 2024-08-13 19:28:30 +02:00
cochran.h
color.cpp profile: rename GF_LINE color to DURATION_LINE 2021-05-08 13:40:24 +02:00
color.h cleanup: prevent distracing conversion warnings 2022-03-12 08:28:32 -08:00
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: convert divesite strings to std::string 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 general: remove (void) function parameter declarations 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 cleanup: silence std::move()-related Coverity warnings 2024-01-15 15:11:36 -08:00
divefilter.h filter: set dive selection at once 2023-04-16 20:23:59 +02:00
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: remove __cplusplus ifdefs 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 build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
equipment.h build: remove extern "C" linkage 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: convert event.c to C++ 2024-08-13 19:28:30 +02:00
event.h build: remove extern "C" linkage 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 profile: C++-ify plot_info 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 Replace remaining qDebug()s by report_info() 2024-04-23 07:47:11 +07:00
imagedownloader.h
import-cobalt.cpp build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
import-csv.cpp build: remove extern "C" linkage 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: convert divesite strings to std::string 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: convert divesite strings to std::string 2024-08-13 19:28:30 +02:00
load-git.cpp general: remove (void) function parameter declarations 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 core: remove DPR from IconMetrics class 2021-12-17 11:54:23 -08:00
metrics.h core: remove DPR from IconMetrics class 2021-12-17 11:54:23 -08:00
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 build: remove extern "C" linkage 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 cleanup: more Coverity silencing 2024-01-17 14:23:19 -08:00
parse-xml.cpp general: remove (void) function parameter declarations 2024-08-13 19:28:30 +02:00
parse.cpp build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
parse.h general: remove (void) function parameter declarations 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 build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
pictureobj.cpp
pictureobj.h
planner.cpp build: remove extern "C" linkage 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: remove __cplusplus ifdefs 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 mobile/UI: remember the system default font size 2021-01-19 12:35:29 -08:00
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 cleanup: use range based for in download code 2023-04-14 21:20:23 +02:00
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: C++-ify statistics.c 2024-08-13 19:28:30 +02:00
statistics.h core: remove __cplusplus ifdefs 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 profile: make event hiding persistent across change of dive 2024-02-23 09:46:16 -08:00
strtod.cpp build: remove extern "C" linkage 2024-08-13 19:28:30 +02:00
structured_list.h core: convert dive.c to C++ 2024-03-10 11:01:42 +13:00
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 general: remove (void) function parameter declarations 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: enable compiler warngings for report_error and report_info 2024-03-12 10:31:07 -04: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