View | Details | Raw Unified | Return to bug 181788
Collapse All | Expand All

(-)files/patch-clang (+24 lines)
Line 0 Link Here
1
--- src/dvb/dvbepg.cpp.orig	2011-04-17 19:17:19.000000000 +0000
2
+++ src/dvb/dvbepg.cpp	2013-09-04 01:48:35.479500850 +0000
3
@@ -690,15 +690,15 @@
4
 	// 1980-01-06T000000 minus 15 secs (= UTC - GPS in 2011)
5
 	QDateTime baseDateTime = QDateTime(QDate(1980, 1, 5), QTime(23, 59, 45), Qt::UTC);
6
 
7
-	for (AtscEitSectionEntry entry = eitSection.entries(); (entryCount > 0) && entry.isValid();
8
-	     --entryCount, entry.advance()) {
9
+	for (AtscEitSectionEntry eitEntry = eitSection.entries();
10
+	     (entryCount > 0) && eitEntry.isValid(); --entryCount, eitEntry.advance()) {
11
 		DvbEpgEntry epgEntry;
12
 		epgEntry.channel = channel;
13
-		epgEntry.begin = baseDateTime.addSecs(entry.startTime());
14
-		epgEntry.duration = QTime().addSecs(entry.duration());
15
-		epgEntry.title = entry.title();
16
+		epgEntry.begin = baseDateTime.addSecs(eitEntry.startTime());
17
+		epgEntry.duration = QTime().addSecs(eitEntry.duration());
18
+		epgEntry.title = eitEntry.title();
19
 
20
-		quint32 id = ((quint32(fakeChannel.networkId) << 16) | quint32(entry.eventId()));
21
+		quint32 id = ((quint32(fakeChannel.networkId) << 16) | quint32(eitEntry.eventId()));
22
 		DvbSharedEpgEntry entry = epgEntries.value(id);
23
 
24
 		if (entry.isValid() && (entry->channel == epgEntry.channel) &&

Return to bug 181788