Skip to content

Commit

Permalink
Qt4 doesn't have QStringLiteral
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenmizuno committed Jan 10, 2018
1 parent 06380c7 commit fe73791
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/qgsbookmarks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ void QgsBookmarks::exportToXml()
QString value = idx.data( Qt::DisplayRole ).toString();
QString header = headerList.at( j );
// If it's the EPSG code, convert it to internal srid
if ( header == QStringLiteral( "sr_id" ) )
if ( header == "sr_id" )
{
QgsCoordinateReferenceSystem crs = QgsCRSCache::instance()->crsByOgcWmsCrs( value );
if ( crs.isValid() )
Expand Down Expand Up @@ -524,9 +524,9 @@ bool QgsProjectBookmarksTableModel::insertRows( int row, int count, const QModel
Q_UNUSED( parent );
Q_UNUSED( row );
// append
int oldCount = QgsProject::instance()->readNumEntry( QStringLiteral( "Bookmarks" ), QStringLiteral( "/count" ) );
int oldCount = QgsProject::instance()->readNumEntry( "Bookmarks", "/count" );
beginInsertRows( parent, oldCount, oldCount + count );
bool result = QgsProject::instance()->writeEntry( QStringLiteral( "Bookmarks" ), QStringLiteral( "/count" ), oldCount + count );
bool result = QgsProject::instance()->writeEntry( "Bookmarks", "/count", oldCount + count );
endInsertRows();
return result;
}
Expand Down

0 comments on commit fe73791

Please sign in to comment.