comparison document/SVFileReader.cpp @ 137:006c90387f40

* Fix many compile warnings, remove some debug output
author Chris Cannam
date Mon, 30 Apr 2007 13:36:23 +0000
parents fbd09fcda469
children f6ce5febc07f
comparison
equal deleted inserted replaced
136:37c26877ca5f 137:006c90387f40
795 NoteModel *nm = dynamic_cast<NoteModel *>(m_currentDataset); 795 NoteModel *nm = dynamic_cast<NoteModel *>(m_currentDataset);
796 796
797 if (nm) { 797 if (nm) {
798 float value = 0.0; 798 float value = 0.0;
799 value = attributes.value("value").trimmed().toFloat(&ok); 799 value = attributes.value("value").trimmed().toFloat(&ok);
800 float duration = 0.0; 800 size_t duration = 0;
801 duration = attributes.value("duration").trimmed().toFloat(&ok); 801 duration = attributes.value("duration").trimmed().toUInt(&ok);
802 QString label = attributes.value("label"); 802 QString label = attributes.value("label");
803 nm->addPoint(NoteModel::Point(frame, value, duration, label)); 803 nm->addPoint(NoteModel::Point(frame, value, duration, label));
804 return ok; 804 return ok;
805 } 805 }
806 806
1062 m_paneCallback.addSelection(start, end); 1062 m_paneCallback.addSelection(start, end);
1063 1063
1064 return true; 1064 return true;
1065 } 1065 }
1066 1066
1067 SVFileReaderPaneCallback::~SVFileReaderPaneCallback()
1068 {
1069 }
1070