mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Code Cleanup: Valgrind Memory
Not sure why, but setting the text on a treewidget item seems to cost a lot of memory. So we don't bother since it is never used. In general the valgrind output is ok, quite surprised. There are very few non-widget items that are alloced but never free'd in the GC code.
This commit is contained in:
@@ -31,13 +31,7 @@ RideItem::RideItem(int type,
|
||||
const Zones *zones, const HrZones *hrZones, MainWindow *main) :
|
||||
QTreeWidgetItem(type), ride_(NULL), main(main), isdirty(false), isedit(false), path(path), fileName(fileName),
|
||||
dateTime(dateTime), zones(zones), hrZones(hrZones)
|
||||
{
|
||||
setText(0, dateTime.toString("ddd"));
|
||||
setText(1, dateTime.toString("MMM d, yyyy"));
|
||||
setText(2, dateTime.toString("h:mm AP"));
|
||||
setTextAlignment(1, Qt::AlignRight);
|
||||
setTextAlignment(2, Qt::AlignRight);
|
||||
}
|
||||
{ }
|
||||
|
||||
RideFile *RideItem::ride()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user