Skip to content

Commit

Permalink
[addons][PVR] Fix PVR_TIMER_TYPE::iPreventDuplicateEpisodesDefault an…
Browse files Browse the repository at this point in the history
…d PVR_TIMER_TYPE::iRecordingGroupDefault type (signed/unsigned mismatch).
  • Loading branch information
ksooo committed Dec 21, 2024
1 parent 22a9ed0 commit e19f93b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -391,11 +391,11 @@ extern "C"

unsigned int iPreventDuplicateEpisodesSize;
struct PVR_ATTRIBUTE_INT_VALUE* preventDuplicateEpisodes;
unsigned int iPreventDuplicateEpisodesDefault;
int iPreventDuplicateEpisodesDefault;

unsigned int iRecordingGroupSize;
struct PVR_ATTRIBUTE_INT_VALUE* recordingGroup;
unsigned int iRecordingGroupDefault;
int iRecordingGroupDefault;

unsigned int iMaxRecordingsSize;
struct PVR_ATTRIBUTE_INT_VALUE* maxRecordings;
Expand Down
9 changes: 0 additions & 9 deletions xbmc/pvr/settings/PVRIntSettingValues.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,6 @@ CPVRIntSettingValues::CPVRIntSettingValues(int defaultValue) : m_defaultValue(de
{
}

CPVRIntSettingValues::CPVRIntSettingValues(struct PVR_ATTRIBUTE_INT_VALUE* values,
unsigned int valuesSize,
unsigned int defaultValue,
int defaultDescriptionResourceId /* = 0 */)
: CPVRIntSettingValues(
values, valuesSize, static_cast<int>(defaultValue), defaultDescriptionResourceId)
{
}

CPVRIntSettingValues::CPVRIntSettingValues(const std::vector<SettingIntValue>& values,
int defaultValue)
: m_values(values), m_defaultValue(defaultValue)
Expand Down
4 changes: 0 additions & 4 deletions xbmc/pvr/settings/PVRIntSettingValues.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ class CPVRIntSettingValues
unsigned int valuesSize,
int defaultValue,
int defaultDescriptionResourceId = 0);
CPVRIntSettingValues(struct PVR_ATTRIBUTE_INT_VALUE* values,
unsigned int valuesSize,
unsigned int defaultValue,
int defaultDescriptionResourceId = 0);
CPVRIntSettingValues(const std::vector<SettingIntValue>& values, int defaultValue);

virtual ~CPVRIntSettingValues() = default;
Expand Down

0 comments on commit e19f93b

Please sign in to comment.