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:
Berthold Stoeger 2024-03-24 21:03:08 +01:00 committed by bstoeger
parent b097c0a44f
commit da7ea17b66
29 changed files with 171 additions and 170 deletions

View file

@ -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;