Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use QStringLiteral
  • Loading branch information
signedav committed Jul 14, 2017
1 parent bf94df8 commit 53cb9ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/qgscodeeditorpython.cpp
Expand Up @@ -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];
Expand Down

0 comments on commit 53cb9ed

Please sign in to comment.