@@ -282,7 +282,7 @@ bool TActionController::verifyRequest(const THttpRequest &request) const
282282bool TActionController::render (const QString &action, const QString &layout)
283283{
284284 if ((int )_rendered > 0 ) {
285- Tf::warn (" Has rendered already: {}" , qUtf8Printable (className () + ' .' + activeAction ()));
285+ Tf::warn (" Has rendered already: {}" , (className () + ' .' + activeAction ()));
286286 return false ;
287287 }
288288 _rendered = RenderState::Rendered;
@@ -300,15 +300,15 @@ bool TActionController::render(const QString &action, const QString &layout)
300300bool TActionController::renderTemplate (const QString &templateName, const QString &layout)
301301{
302302 if ((int )_rendered > 0 ) {
303- Tf::warn (" Has rendered already: {}" , qUtf8Printable (className () + ' #' + activeAction ()));
303+ Tf::warn (" Has rendered already: {}" , (className () + ' #' + activeAction ()));
304304 return false ;
305305 }
306306 _rendered = RenderState::Rendered;
307307
308308 // Creates view-object and displays it
309309 QStringList names = templateName.split (" /" );
310310 if (names.count () != 2 ) {
311- Tf::error (" Invalid patameter: {}" , qUtf8Printable ( templateName) );
311+ Tf::error (" Invalid patameter: {}" , templateName);
312312 return false ;
313313 }
314314 TDispatcher<TActionView> viewDispatcher (viewClassName (names[0 ], names[1 ]));
@@ -323,7 +323,7 @@ bool TActionController::renderTemplate(const QString &templateName, const QStrin
323323bool TActionController::renderText (const QString &text, bool layoutEnable, const QString &layout)
324324{
325325 if ((int )_rendered > 0 ) {
326- Tf::warn (" Has rendered already: {}" , qUtf8Printable (className () + ' #' + activeAction ()));
326+ Tf::warn (" Has rendered already: {}" , (className () + ' #' + activeAction ()));
327327 return false ;
328328 }
329329 _rendered = RenderState::Rendered;
@@ -428,7 +428,7 @@ bool TActionController::renderXml(const QStringList &list)
428428bool TActionController::renderAndCache (const QByteArray &key, int seconds, const QString &action, const QString &layout)
429429{
430430 if ((int )_rendered > 0 ) {
431- Tf::warn (" Has rendered already: {}" , qUtf8Printable (className () + ' .' + activeAction ()));
431+ Tf::warn (" Has rendered already: {}" , (className () + ' .' + activeAction ()));
432432 return false ;
433433 }
434434
@@ -449,7 +449,7 @@ bool TActionController::renderAndCache(const QByteArray &key, int seconds, const
449449bool TActionController::renderOnCache (const QByteArray &key)
450450{
451451 if ((int )_rendered > 0 ) {
452- Tf::warn (" Has rendered already: {}" , qUtf8Printable (className () + ' .' + activeAction ()));
452+ Tf::warn (" Has rendered already: {}" , (className () + ' .' + activeAction ()));
453453 return false ;
454454 }
455455
@@ -481,7 +481,7 @@ QString TActionController::getRenderingData(const QString &templateName, const Q
481481 // Creates view-object
482482 QStringList names = templateName.split (" /" );
483483 if (names.count () != 2 ) {
484- Tf::error (" Invalid patameter: {}" , qUtf8Printable ( templateName) );
484+ Tf::error (" Invalid patameter: {}" , templateName);
485485 return QString ();
486486 }
487487
@@ -527,7 +527,7 @@ QByteArray TActionController::renderView(TActionView *view)
527527 TDispatcher<TActionView> defLayoutDispatcher (layoutClassName (QLatin1String (" application" )));
528528 if (!layoutView) {
529529 if (!layout ().isNull ()) {
530- tSystemDebug (" Not found layout: {}" , qUtf8Printable ( layout () ));
530+ tSystemDebug (" Not found layout: {}" , layout ());
531531 return QByteArray ();
532532 } else {
533533 // Use default layout
@@ -555,7 +555,7 @@ bool TActionController::renderErrorResponse(int statusCode)
555555 bool ret = false ;
556556
557557 if ((int )_rendered > 0 ) {
558- Tf::warn (" Has rendered already: {}" , qUtf8Printable (className () + ' #' + activeAction ()));
558+ Tf::warn (" Has rendered already: {}" , (className () + ' #' + activeAction ()));
559559 return ret;
560560 }
561561
@@ -592,7 +592,7 @@ QString TActionController::partialViewClassName(const QString &partial)
592592void TActionController::redirect (const QUrl &url, int statusCode)
593593{
594594 if ((int )_rendered > 0 ) {
595- Tf::error (" Unable to redirect. Has rendered already: {}" , qUtf8Printable (className () + ' #' + activeAction ()));
595+ Tf::error (" Unable to redirect. Has rendered already: {}" , (className () + ' #' + activeAction ()));
596596 return ;
597597 }
598598 _rendered = RenderState::Rendered;
@@ -614,7 +614,7 @@ void TActionController::redirect(const QUrl &url, int statusCode)
614614bool TActionController::sendFile (const QString &filePath, const QByteArray &contentType, const QString &name, bool autoRemove)
615615{
616616 if ((int )_rendered > 0 ) {
617- Tf::warn (" Has rendered already: {}" , qUtf8Printable (className () + ' #' + activeAction ()));
617+ Tf::warn (" Has rendered already: {}" , (className () + ' #' + activeAction ()));
618618 return false ;
619619 }
620620 _rendered = RenderState::Rendered;
@@ -642,7 +642,7 @@ bool TActionController::sendFile(const QString &filePath, const QByteArray &cont
642642bool TActionController::sendData (const QByteArray &data, const QByteArray &contentType, const QString &name)
643643{
644644 if ((int )_rendered > 0 ) {
645- Tf::warn (" Has rendered already: {}" , qUtf8Printable (className () + ' #' + activeAction ()));
645+ Tf::warn (" Has rendered already: {}" , (className () + ' #' + activeAction ()));
646646 return false ;
647647 }
648648 _rendered = RenderState::Rendered;
@@ -800,7 +800,7 @@ void TActionController::setFlash(const QString &name, const QVariant &value)
800800 if (value.isValid ()) {
801801 _flashVars.insert (name, value);
802802 } else {
803- tSystemWarn (" An invalid QVariant object for setFlash(), name:{}" , qUtf8Printable ( name) );
803+ tSystemWarn (" An invalid QVariant object for setFlash(), name:{}" , name);
804804 }
805805}
806806
0 commit comments