mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Cleanup: move error reporting function declarations to errorhelper.h
Move the declarations of the "report_error()" and "set_error_cb()" functions and the "verbose" variable to errorhelper.h. Thus, error-reporting translation units don't have to import the big dive.h header file. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
2a966ac2a9
commit
5da09a21bb
55 changed files with 88 additions and 30 deletions
|
@ -19,6 +19,7 @@
|
|||
#include <QStandardPaths>
|
||||
#include <QMessageBox>
|
||||
#include <QHeaderView>
|
||||
#include "core/errorhelper.h"
|
||||
#include "core/qthelper.h"
|
||||
#include "core/trip.h"
|
||||
#include "desktop-widgets/command.h"
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
#include "profile-widget/profilewidget2.h"
|
||||
#include "core/save-profiledata.h"
|
||||
#include "core/divesite.h"
|
||||
#include "core/errorhelper.h"
|
||||
#include "core/tag.h"
|
||||
|
||||
// Retrieves the current unit settings defined in the Subsurface preferences.
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#include "core/device.h"
|
||||
#include "core/divecomputer.h"
|
||||
#include "core/divesitehelpers.h"
|
||||
#include "core/errorhelper.h"
|
||||
#include "core/file.h"
|
||||
#include "core/gettextfromc.h"
|
||||
#include "core/git-access.h"
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
#include "desktop-widgets/filterwidget2.h"
|
||||
#include "core/applicationstate.h"
|
||||
#include "core/gpslocation.h"
|
||||
#include "core/dive.h"
|
||||
|
||||
#define NUM_RECENT_FILES 4
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#include "ui_preferences_network.h"
|
||||
#include "subsurfacewebservices.h"
|
||||
#include "core/cloudstorage.h"
|
||||
#include "core/dive.h"
|
||||
#include "core/errorhelper.h"
|
||||
#include "core/settings/qPrefCloudStorage.h"
|
||||
#include "core/settings/qPrefProxy.h"
|
||||
#include <QNetworkProxy>
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#include "desktop-widgets/command.h"
|
||||
#include "desktop-widgets/usersurvey.h"
|
||||
#include "core/trip.h"
|
||||
#include "core/errorhelper.h"
|
||||
#include "core/file.h"
|
||||
#include "desktop-widgets/mapwidget.h"
|
||||
#include "desktop-widgets/tab-widgets/maintab.h"
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
#include "qt-models/divelocationmodel.h"
|
||||
#include "qt-models/filtermodels.h"
|
||||
#include "core/divesite.h"
|
||||
#include "core/errorhelper.h"
|
||||
#include "core/subsurface-string.h"
|
||||
#include "core/gettextfromc.h"
|
||||
#include "desktop-widgets/locationinformation.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue