Skip to content
This repository has been archived by the owner on Apr 13, 2024. It is now read-only.

Commit

Permalink
clarify what is 'Reset' for programInfo
Browse files Browse the repository at this point in the history
Renamed to ResetProps as it does
  • Loading branch information
janbar committed Sep 7, 2015
1 parent 5e1a0f5 commit 7b38be0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cppmyth/MythProgramInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class MythProgramInfo
bool operator !=(const MythProgramInfo &other);

/// Reset custom flags and properties
void Reset() { m_flags = 0; m_props.reset(new Props()); }
void ResetProps() { m_flags = 0; m_props.reset(new Props()); }
/// Copy reference of properties from other
void CopyProps(const MythProgramInfo &other) { m_props = other.m_props; }
// Custom flags
Expand Down
2 changes: 1 addition & 1 deletion src/pvrclient-mythtv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ void PVRClientMythTV::HandleRecordingListChange(const Myth::EventMessage& msg)
if (m_control->RefreshRecordedArtwork(*(msg.program)) && g_bExtraDebug)
XBMC->Log(LOG_DEBUG, "%s: artwork found for %s", __FUNCTION__, prog.UID().c_str());
// Reset to recalculate flags
prog.Reset();
prog.ResetProps();
// Keep props
prog.CopyProps(it->second);
// Update recording
Expand Down

0 comments on commit 7b38be0

Please sign in to comment.