Skip to content

Commit

Permalink
Fix compiler warning
Browse files Browse the repository at this point in the history
Fix  warning: declaration of ‘int type’ shadows a parameter
  • Loading branch information
bennettpeter committed Nov 14, 2024
1 parent e4a2e04 commit 1b7ecb1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions mythtv/libs/libmythbase/programinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3710,11 +3710,11 @@ void ProgramInfo::QueryMarkupMap(
{
// marks[query.value(0).toLongLong()] =
// (MarkTypes) query.value(1).toInt();
int type = query.value(1).toInt();
if (type == MARK_VIDEO_RATE)
marks[query.value(2).toLongLong()] = (MarkTypes) type;
int entryType = query.value(1).toInt();
if (entryType == MARK_VIDEO_RATE)
marks[query.value(2).toLongLong()] = (MarkTypes) entryType;
else
marks[query.value(0).toLongLong()] = (MarkTypes) type;
marks[query.value(0).toLongLong()] = (MarkTypes) entryType;

}
}
Expand Down Expand Up @@ -3748,11 +3748,11 @@ void ProgramInfo::QueryMarkupMap(
{
// marks[query.value(0).toULongLong()] =
// (MarkTypes) query.value(1).toInt();
int type = query.value(1).toInt();
if (type == MARK_VIDEO_RATE)
marks[query.value(2).toULongLong()] = (MarkTypes) type;
int entryType = query.value(1).toInt();
if (entryType == MARK_VIDEO_RATE)
marks[query.value(2).toULongLong()] = (MarkTypes) entryType;
else
marks[query.value(0).toULongLong()] = (MarkTypes) type;
marks[query.value(0).toULongLong()] = (MarkTypes) entryType;
}
}

Expand Down

0 comments on commit 1b7ecb1

Please sign in to comment.