Skip to content

Commit

Permalink
Merge pull request #4856 from signedav/stringliteral
Browse files Browse the repository at this point in the history
Minor improvements QStringLiterals for GitHub Test
  • Loading branch information
nyalldawson authored Jul 14, 2017
2 parents 9c08d00 + 53cb9ed commit 455769c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/qgscodeeditorpython.cpp
Original file line number Diff line number Diff line change
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 455769c

Please sign in to comment.