4 changes: 2 additions & 2 deletions mythtv/libs/libmythupnp/ssdp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ bool SSDP::ProcessSearchResponse( const QStringMap &headers )
if ((nPos = sCache.indexOf("=", nPos)) < 0)
return false;

auto nSecs = std::chrono::seconds(sCache.midRef( nPos+1 ).toInt());
auto nSecs = std::chrono::seconds(sCache.mid( nPos+1 ).toInt());

SSDPCache::Instance()->Add( sST, sUSN, sDescURL, nSecs );

Expand Down Expand Up @@ -656,7 +656,7 @@ bool SSDP::ProcessNotify( const QStringMap &headers )
if ((nPos = sCache.indexOf("=", nPos)) < 0)
return false;

auto nSecs = std::chrono::seconds(sCache.midRef( nPos+1 ).toInt());
auto nSecs = std::chrono::seconds(sCache.mid( nPos+1 ).toInt());

SSDPCache::Instance()->Add( sNT, sUSN, sDescURL, nSecs );

Expand Down
2 changes: 1 addition & 1 deletion mythtv/programs/mythfilerecorder/mythfilerecorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ bool Commands::process_command(QString & cmd)
}
else if (cmd.startsWith("BlockSize"))
{
m_streamer->BlockSize(cmd.midRef(10).toInt());
m_streamer->BlockSize(cmd.mid(10).toInt());
send_status("OK");
}
else if (cmd.startsWith("StartStreaming"))
Expand Down
2 changes: 1 addition & 1 deletion mythtv/programs/mythfilldatabase/channeldata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ void ChannelData::handleChannels(int id, ChannelInfoList *chanlist) const
else
{
callsign = w1.left(w2.length() == 1 ? 4:3);
callsign += w2.leftRef(5 - callsign.length());
callsign += w2.left(5 - callsign.length());
}
(*i).m_callSign = callsign;
}
Expand Down
2 changes: 1 addition & 1 deletion mythtv/programs/mythfilldatabase/xmltvparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ bool XMLTVParser::parseFile(
{
// Movie production year
QString date = xml.readElementText(QXmlStreamReader::SkipChildElements);
pginfo->m_airdate = date.leftRef(4).toUInt();
pginfo->m_airdate = date.left(4).toUInt();
}
else if (xml.name() == "star-rating")
{
Expand Down
6 changes: 3 additions & 3 deletions mythtv/programs/mythfrontend/networkcontrol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -838,9 +838,9 @@ QString NetworkControl::processPlay(NetworkCommand *nc, int clientID)
message = "NETWORK_CONTROL SEEK BACKWARD";
else if (nc->getArg(2).contains(QRegularExpression(R"(^\d\d:\d\d:\d\d$)")))
{
int hours = nc->getArg(2).midRef(0, 2).toInt();
int minutes = nc->getArg(2).midRef(3, 2).toInt();
int seconds = nc->getArg(2).midRef(6, 2).toInt();
int hours = nc->getArg(2).mid(0, 2).toInt();
int minutes = nc->getArg(2).mid(3, 2).toInt();
int seconds = nc->getArg(2).mid(6, 2).toInt();
message = QString("NETWORK_CONTROL SEEK POSITION %1")
.arg((hours * 3600) + (minutes * 60) + seconds);
}
Expand Down
4 changes: 2 additions & 2 deletions mythtv/programs/mythlcdserver/lcdprocclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1498,7 +1498,7 @@ void LCDProcClient::scrollMenuText()
// Indent this item if nessicary
aString += bString.fill(' ', curItem->getIndent());

aString += curItem->ItemName().midRef(curItem->getScrollPos(),
aString += curItem->ItemName().mid(curItem->getScrollPos(),
( m_lcdWidth - lcdStartCol));
aString += "\"";
sendToServer(aString);
Expand Down Expand Up @@ -1604,7 +1604,7 @@ void LCDProcClient::scrollMenuText()
curItem->incrementScrollPos();

if ((int)curItem->getScrollPos() <= longest_line)
aString += curItem->ItemName().midRef(curItem->getScrollPos(),
aString += curItem->ItemName().mid(curItem->getScrollPos(),
( m_lcdWidth-lcdStartCol));

aString += "\"";
Expand Down