Skip to content
Permalink
Browse files

rename Store into Registry

  • Loading branch information
pblottiere committed Jan 30, 2017
1 parent 5b42d4a commit 6a64a556f01c8bb3c34a6710c5f6fbcf92452908
Showing with 4 additions and 4 deletions.
  1. +3 −3 src/server/qgsserver.cpp
  2. +1 −1 src/server/qgsserver.h
@@ -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
{
@@ -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

0 comments on commit 6a64a55

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