mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: replace fprintf to stderr by report_info()
Let's try to unify debugging output! Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
b097c0a44f
commit
da7ea17b66
29 changed files with 171 additions and 170 deletions
|
@ -2,6 +2,7 @@
|
|||
#include "statsmanager.h"
|
||||
#include "themeinterface.h"
|
||||
#include "stats/chartlistmodel.h"
|
||||
#include "core/errorhelper.h"
|
||||
|
||||
StatsManager::StatsManager() : view(nullptr), charts(nullptr), themeInitialized(false)
|
||||
{
|
||||
|
@ -15,9 +16,9 @@ StatsManager::~StatsManager()
|
|||
void StatsManager::init(StatsView *v, ChartListModel *m)
|
||||
{
|
||||
if (!v)
|
||||
fprintf(stderr, "StatsManager::init(): no StatsView - statistics will not work.\n");
|
||||
report_info("StatsManager::init(): no StatsView - statistics will not work.");
|
||||
if (!m)
|
||||
fprintf(stderr, "StatsManager::init(): no ChartListModel - statistics will not work.\n");
|
||||
report_info("StatsManager::init(): no ChartListModel - statistics will not work.");
|
||||
view = v;
|
||||
charts = m;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue