Skip to content

Commit

Permalink
Fix warnings about uninitialized variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxdude42 committed Apr 2, 2023
1 parent 23b7462 commit 0363c0d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mythtv/programs/mythbackend/servicesv2/v2dvr.cpp
Expand Up @@ -1351,7 +1351,7 @@ V2ProgramList* V2Dvr::GetUpcomingList( int nStartIndex,
{
// Handle enum name
QMetaEnum meta = QMetaEnum::fromType<RecStatus::Type>();
bool ok;
bool ok {false};
nRecStatus = meta.keyToValue(RecStatus.toLocal8Bit(), &ok);
// if enum name not valid try for int nRecStatus
if (!ok)
Expand Down Expand Up @@ -1922,7 +1922,7 @@ QString V2Dvr::RecStatusToString(const QString & RecStatus)
{
// Handle enum name
QMetaEnum meta = QMetaEnum::fromType<RecStatus::Type>();
bool ok;
bool ok {false};
int value = meta.keyToValue(RecStatus.toLocal8Bit(), &ok);
// if enum name not valid try for int value
if (!ok)
Expand All @@ -1939,7 +1939,7 @@ QString V2Dvr::RecStatusToDescription(const QString & RecStatus, int recType,
{
// Handle enum name
QMetaEnum meta = QMetaEnum::fromType<RecStatus::Type>();
bool ok;
bool ok {false};
int value = meta.keyToValue(RecStatus.toLocal8Bit(), &ok);
// if enum name not valid try for int value
if (!ok)
Expand Down

0 comments on commit 0363c0d

Please sign in to comment.