Skip to content

Commit

Permalink
Fix sentinel init (caught by icpc).
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-kristjansson committed Dec 11, 2012
1 parent dd786f7 commit e6dd166
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions mythtv/programs/mythfrontend/videofileassoc.cpp
Expand Up @@ -46,11 +46,11 @@ namespace
FileAssociationWrap(const FileAssociations::file_association &fa) :
m_fa(fa), m_state(efsNONE) {}

int GetID() const { return m_fa.id; }
QString GetExtension() const { return m_fa.extension; }
QString GetCommand() const { return m_fa.playcommand; }
bool GetDefault() const { return m_fa.use_default; }
bool GetIgnore() const { return m_fa.ignore; }
unsigned int GetIDx(void) const { return m_fa.id; }
QString GetExtension(void) const { return m_fa.extension; }
QString GetCommand(void) const { return m_fa.playcommand; }
bool GetDefault(void) const { return m_fa.use_default; }
bool GetIgnore(void) const { return m_fa.ignore; }

FA_State GetState() const { return m_state; }

Expand All @@ -61,7 +61,7 @@ namespace
case efsDELETE:
{
FileAssociations::getFileAssociation().remove(m_fa.id);
m_fa.id = -1;
m_fa.id = 0;
m_state = efsNONE;
break;
}
Expand Down

0 comments on commit e6dd166

Please sign in to comment.