mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-25 00:05:03 -04:00
rename Store into Registry
This commit is contained in:
parent
5b42d4ac2e
commit
6a64a556f0
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user