Skip to content

Commit bd51e7f

Browse files
updated
1 parent 4449549 commit bd51e7f

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

src/tactioncontext.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ void TActionContext::execute(THttpRequest &request)
9494
QStringList components = TUrlRoute::splitPath(path);
9595
TRouting route = TUrlRoute::instance().findRouting(method, components);
9696

97-
tSystemDebug("Routing: controller:{} action:{}", route.controller.data(),
98-
route.action.data());
97+
tSystemDebug("Routing: controller:{} action:{}", (char*)route.controller.data(),
98+
(char*)route.action.data());
9999

100100
if (!route.exists) {
101101
// Default URL routing

src/tactioncontroller.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ bool TActionController::verifyRequest(const THttpRequest &request) const
264264
throw SecurityException("Authenticity token is empty", __FILE__, __LINE__);
265265
}
266266

267-
tSystemDebug("postAuthToken: {}", postAuthToken.data());
267+
tSystemDebug("postAuthToken: {}", (char*)postAuthToken.data());
268268
return Tf::strcmp(postAuthToken, authenticityToken());
269269
}
270270

src/tactionthread.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ void TActionThread::run()
122122
QByteArray connectionHeader = requests[0].header().rawHeader(QByteArrayLiteral("Connection")).toLower();
123123
if (Q_UNLIKELY(connectionHeader.contains("upgrade"))) {
124124
QByteArray upgradeHeader = requests[0].header().rawHeader(QByteArrayLiteral("Upgrade")).toLower();
125-
tSystemDebug("Upgrade: {}", upgradeHeader.data());
125+
tSystemDebug("Upgrade: {}", (char*)upgradeHeader.data());
126126
if (upgradeHeader == "websocket") {
127127
// Switch to WebSocket
128128
if (!handshakeForWebSocket(requests[0].header())) {

src/thttputility.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ QByteArray THttpUtility::timeZone()
402402
tz += (offset > 0) ? '+' : '-';
403403
offset = qAbs(offset);
404404
tz += QString("%1%2").arg(offset / 60, 2, 10, QLatin1Char('0')).arg(offset % 60, 2, 10, QLatin1Char('0')).toLatin1();
405-
tSystemDebug("tz: {}", tz.data());
405+
tSystemDebug("tz: {}", (char*)tz.data());
406406
return tz;
407407
}
408408

src/tpopmailer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ bool TPopMailer::connectToHost()
8282
int j = response.indexOf('>');
8383
if (i >= 0 && j > i) {
8484
apopToken = response.mid(i, j - i + 1);
85-
tSystemDebug("APOP token: {}", apopToken.data());
85+
tSystemDebug("APOP token: {}", (char*)apopToken.data());
8686
}
8787

8888
if (_apopEnabled) {

src/tsessionredisstore.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ bool TSessionRedisStore::store(TSession &session)
4040
#endif
4141

4242
TRedis redis;
43-
tSystemDebug("TSessionRedisStore::store id:{}", session.id().data());
43+
tSystemDebug("TSessionRedisStore::store id:{}", (char*)session.id().data());
4444
return redis.setEx('_' + session.id(), data, lifeTimeSecs());
4545
}
4646

src/tsmtpmailer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ bool TSmtpMailer::write(const QByteArray &command)
408408

409409
int len = _socket->write(cmd);
410410
_socket->flush();
411-
tSystemDebug("C: {}", cmd.trimmed().data());
411+
tSystemDebug("C: {}", (char*)cmd.trimmed().data());
412412
return (len == cmd.length());
413413
}
414414

@@ -430,7 +430,7 @@ int TSmtpMailer::read(QByteArrayList *reply)
430430
break;
431431
}
432432
}
433-
tSystemDebug("S: {}", rcv.data());
433+
tSystemDebug("S: {}", (char*)rcv.data());
434434

435435
if (code == 0)
436436
code = rcv.left(3).toInt();

src/turlroute.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ bool TUrlRoute::addRouteFromString(const QString &line)
128128

129129
_routes << rt;
130130
tSystemDebug("route: method:{} path:{} ctrl:{} action:{} params:{}",
131-
rt.method, qUtf8Printable(QLatin1String("/") + rt.componentList.join("/")), rt.controller.data(),
132-
rt.action.data(), rt.hasVariableParams);
131+
rt.method, qUtf8Printable(QLatin1String("/") + rt.componentList.join("/")), (char*)rt.controller.data(),
132+
(char*)rt.action.data(), rt.hasVariableParams);
133133
return true;
134134
}
135135

0 commit comments

Comments
 (0)