Skip to content

Commit

Permalink
tidy: Convert a couple of LOC defines to static const.
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxdude42 committed Jul 10, 2022
1 parent a1f1fb4 commit c6b650a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions mythtv/libs/libmythtv/mheg/netstream.cpp
Expand Up @@ -42,7 +42,7 @@
/*
* Constants
*/
#define LOC "[netstream] "
static const QString LOC { QStringLiteral("[netstream] ") };


/*
Expand Down Expand Up @@ -758,7 +758,7 @@ NAMThread::~NAMThread()
// virtual
void NAMThread::run()
{
LOG(VB_FILE, LOG_INFO, LOC "NAMThread starting");
LOG(VB_FILE, LOG_INFO, LOC + "NAMThread starting");

m_nam = new QNetworkAccessManager();
m_nam->setObjectName("NetStream NAM");
Expand Down Expand Up @@ -787,7 +787,7 @@ void NAMThread::run()
QNetworkProxy::NoProxy;
if (QNetworkProxy::NoProxy != type)
{
LOG(VB_GENERAL, LOG_INFO, LOC "Using proxy: " + proxy);
LOG(VB_GENERAL, LOG_INFO, LOC + "Using proxy: " + proxy);
m_nam->setProxy(QNetworkProxy(
type, url.host(), url.port(), url.userName(), url.password() ));
}
Expand Down Expand Up @@ -831,7 +831,7 @@ void NAMThread::run()
delete m_nam;
m_nam = nullptr;

LOG(VB_FILE, LOG_INFO, LOC "NAMThread stopped");
LOG(VB_FILE, LOG_INFO, LOC + "NAMThread stopped");
}

// slot
Expand Down Expand Up @@ -868,7 +868,7 @@ bool NAMThread::StartRequest(NetStreamRequest *p)
{
if (!p)
{
LOG(VB_GENERAL, LOG_ERR, LOC "Invalid NetStreamRequest");
LOG(VB_GENERAL, LOG_ERR, LOC + "Invalid NetStreamRequest");
return false;
}

Expand All @@ -888,7 +888,7 @@ bool NAMThread::AbortRequest(NetStreamAbort *p)
{
if (!p)
{
LOG(VB_GENERAL, LOG_ERR, LOC "Invalid NetStreamAbort");
LOG(VB_GENERAL, LOG_ERR, LOC + "Invalid NetStreamAbort");
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/mpeg/HEVCParser.cpp
Expand Up @@ -15,7 +15,7 @@ extern "C" {
#include <cmath>
#include <strings.h>

#define LOC "HEVCParser "
static const QString LOC { QStringLiteral("HEVCParser ") };

/*
References:
Expand Down

0 comments on commit c6b650a

Please sign in to comment.