From 53cb9edaf84cc0b0b7a2e84a0597c684fb41eab6 Mon Sep 17 00:00:00 2001 From: signedav Date: Fri, 14 Jul 2017 15:17:07 +0200 Subject: [PATCH] Use QStringLiteral --- src/gui/qgscodeeditorpython.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/qgscodeeditorpython.cpp b/src/gui/qgscodeeditorpython.cpp index 5599c88fbbd1..3ca76052cb05 100644 --- a/src/gui/qgscodeeditorpython.cpp +++ b/src/gui/qgscodeeditorpython.cpp @@ -65,14 +65,14 @@ void QgsCodeEditorPython::setSciLexerPython() if ( mAPISFilesList.isEmpty() ) { - mPapFile = QgsApplication::pkgDataPath() + "/python/qsci_apis/pyqgis.pap"; + mPapFile = QgsApplication::pkgDataPath() + QStringLiteral( "/python/qsci_apis/pyqgis.pap" ); apis->loadPrepared( mPapFile ); } else if ( mAPISFilesList.length() == 1 && mAPISFilesList[0].right( 3 ) == QLatin1String( "pap" ) ) { if ( !QFileInfo::exists( mAPISFilesList[0] ) ) { - QgsDebugMsg( QString( "The apis file %1 not found" ).arg( mAPISFilesList.at( 0 ) ) ); + QgsDebugMsg( QStringLiteral( "The apis file %1 not found" ).arg( mAPISFilesList.at( 0 ) ) ); return; } mPapFile = mAPISFilesList[0];