Skip to content

Commit

Permalink
qt6: Add a couple more explicit conversions from int->QString.
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxdude42 committed Mar 28, 2021
1 parent 179d413 commit 16ccabb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mythtv/programs/mythbackend/httpstatus.cpp
Expand Up @@ -337,7 +337,7 @@ void HttpStatus::FillStatusXML( QDomDocument *pDoc )
backends.appendChild(mbe);
mbe.setAttribute("type", "Master");
mbe.setAttribute("name", masterhost);
mbe.setAttribute("url" , masterip + ":" + masterport);
mbe.setAttribute("url" , masterip + ":" + QString::number(masterport));
}

SSDPCacheEntries *sbes = SSDP::Find(
Expand Down Expand Up @@ -751,7 +751,7 @@ int HttpStatus::PrintEncoderStatus( QTextStream &os, const QDomElement& encoders
{
SleepStatus sleepStatus =
(SleepStatus) e.attribute("sleepstatus",
QString((int)sStatus_Undefined)).toInt();
QString::number(sStatus_Undefined)).toInt();

if (sleepStatus == sStatus_Asleep)
os << " (currently asleep).<br />";
Expand Down
2 changes: 1 addition & 1 deletion mythtv/programs/mythfrontend/guidegrid.cpp
Expand Up @@ -858,7 +858,7 @@ bool GuideGrid::gestureEvent(MythGestureEvent *event)
}

LOG(VB_GENERAL, LOG_INFO, LOC + QString("Guide Gesture event %1")
.arg((QString)event->GetGesture()));
.arg(QString::number(event->GetGesture())));
switch (event->GetGesture())
{
case MythGestureEvent::Click:
Expand Down

0 comments on commit 16ccabb

Please sign in to comment.