rename Store into Registry

This commit is contained in:
Blottiere Paul 2017-01-27 10:11:55 +01:00
parent 5b42d4ac2e
commit 6a64a556f0
2 changed files with 4 additions and 4 deletions

View File

@ -353,15 +353,15 @@ void QgsServer::handleRequest( QgsServerRequest& request, QgsServerResponse& res
QString configFilePath = configPath( *sConfigFilePath, parameterMap );
// load the project if needed and not empty
auto projectIt = mProjectStore.find( configFilePath );
if ( projectIt == mProjectStore.constEnd() )
auto projectIt = mProjectRegistry.find( configFilePath );
if ( projectIt == mProjectRegistry.constEnd() )
{
// load the project
QgsProject* project = new QgsProject();
project->setFileName( configFilePath );
if ( project->read() )
{
projectIt = mProjectStore.insert( configFilePath, project );
projectIt = mProjectRegistry.insert( configFilePath, project );
}
else
{

View File

@ -133,7 +133,7 @@ class SERVER_EXPORT QgsServer
static QgsServerSettings sSettings;
// map of QgsProject
QMap<QString, const QgsProject*> mProjectStore;
QMap<QString, const QgsProject*> mProjectRegistry;
};
#endif // QGSSERVER_H