From e889ac41a6b583dabbc2bc4dbf62c8dea11abec7 Mon Sep 17 00:00:00 2001 From: Sean Rhea Date: Sun, 13 Dec 2009 12:34:32 -0500 Subject: [PATCH] stop using global pointer, remove const cast --- src/BestIntervalDialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BestIntervalDialog.cpp b/src/BestIntervalDialog.cpp index b0286f7bf..dbedf415d 100644 --- a/src/BestIntervalDialog.cpp +++ b/src/BestIntervalDialog.cpp @@ -289,7 +289,7 @@ BestIntervalDialog::addClicked() ride->timeToDistance(stop)); // add - QTreeWidgetItem *allIntervals = (QTreeWidgetItem *)mainwindow->allIntervalItems(); + QTreeWidgetItem *allIntervals = mainWindow->mutableIntervalItems(); allIntervals->addChild(last); } }