diff options
Diffstat (limited to 'desktop-widgets/templatelayout.cpp')
-rw-r--r-- | desktop-widgets/templatelayout.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/desktop-widgets/templatelayout.cpp b/desktop-widgets/templatelayout.cpp index 060fc0ace..fa5f6282c 100644 --- a/desktop-widgets/templatelayout.cpp +++ b/desktop-widgets/templatelayout.cpp @@ -210,7 +210,7 @@ QString TemplateLayout::generateStatistics() stats_summary_auto_free stats; calculate_stats_summary(&stats, false); while (stats.stats_yearly != NULL && stats.stats_yearly[i].period) { - YearInfo year(stats.stats_yearly[i]); + YearInfo year{ &stats.stats_yearly[i] }; years.append(QVariant::fromValue(year)); i++; } @@ -256,13 +256,3 @@ void TemplateLayout::writeTemplate(QString template_name, QString grantlee_templ qfile.close(); } } - -YearInfo::YearInfo() -{ - year = nullptr; -} - -YearInfo::~YearInfo() -{ - -} |