Skip to content

Commit

Permalink
Remove unused arguments from TV::UpdateOSDStatus().
Browse files Browse the repository at this point in the history
The default-valued "next" and "prev" arguments are never deliberately
set, and were actually getting in the way of the "timeout" argument.
  • Loading branch information
stichnot committed May 17, 2012
1 parent 0089f7d commit 0a4eb5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions mythtv/libs/libmythtv/tv_play.cpp
Expand Up @@ -7519,13 +7519,11 @@ void TV::UpdateOSDStatus(const PlayerContext *ctx, osdInfo &info,

void TV::UpdateOSDStatus(const PlayerContext *ctx, QString title, QString desc,
QString value, int type, QString units,
int position, int prev, int next, OSDTimeout timeout)
int position, OSDTimeout timeout)
{
osdInfo info;
info.values.insert("position", position);
info.values.insert("relposition", position);
info.values.insert("previous", prev);
info.values.insert("next", next);
info.text.insert("title", title);
info.text.insert("description", desc);
info.text.insert("value", value);
Expand Down Expand Up @@ -8424,7 +8422,7 @@ void TV::ChangeSubtitleZoom(PlayerContext *ctx, int dir)
UpdateOSDStatus(ctx, tr("Adjust Subtitle Zoom"), tr("Subtitle Zoom"),
QString::number(newval),
kOSDFunctionalType_SubtitleZoomAdjust,
"%", newval * 1000 / 200, 0, 0, kOSDTimeout_Long);
"%", newval * 1000 / 200, kOSDTimeout_Long);
SetUpdateOSDPosition(false);
gCoreContext->SaveSetting("OSDCC708TextZoom", newval);
}
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/tv_play.h
Expand Up @@ -464,7 +464,7 @@ class MTV_PUBLIC TV : public QObject
void UpdateOSDProgInfo(const PlayerContext*, const char *whichInfo);
void UpdateOSDStatus(const PlayerContext *ctx, QString title, QString desc,
QString value, int type, QString units,
int position = 0, int prev = 0, int next = 0,
int position = 0,
enum OSDTimeout timeout = kOSDTimeout_Med);
void UpdateOSDStatus(const PlayerContext *ctx, osdInfo &info,
int type, enum OSDTimeout timeout);
Expand Down

0 comments on commit 0a4eb5f

Please sign in to comment.