Skip to content
Permalink
Browse files

Use QStringLiteral

  • Loading branch information
signedav committed Jul 14, 2017
1 parent bf94df8 commit 53cb9edaf84cc0b0b7a2e84a0597c684fb41eab6
Showing with 2 additions and 2 deletions.
  1. +2 −2 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];

0 comments on commit 53cb9ed

Please sign in to comment.
You can’t perform that action at this time.