Skip to content
Permalink
Browse files

Merge pull request #4856 from signedav/stringliteral

Minor improvements QStringLiterals for GitHub Test
  • Loading branch information
nyalldawson committed Jul 14, 2017
2 parents 9c08d00 + 53cb9ed commit 455769c54d4378ef603e5ebf1374187dd3e91916
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 455769c

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