Skip to content
Permalink
Browse files

ASTYLE Formatted

  • Loading branch information
elpaso committed Oct 10, 2014
1 parent c9d6f4d commit 59004d3de40fcc11e30bfa57d7237a0cb413d9c5
Showing with 7 additions and 6 deletions.
  1. +7 −6 src/mapserver/qgis_map_serv.cpp
@@ -324,9 +324,9 @@ int main( int argc, char * argv[] )
// Create the interface
QgsServerInterfaceImpl serverIface( &capabilitiesCache );
// Init plugins
if (! QgsServerPlugins::initPlugins( &serverIface ) )
if ( ! QgsServerPlugins::initPlugins( &serverIface ) )
{
QgsMessageLog::logMessage( "No server python plugins are available", "Server", QgsMessageLog::INFO );
QgsMessageLog::logMessage( "No server python plugins are available", "Server", QgsMessageLog::INFO );
}
else
{
@@ -366,9 +366,8 @@ int main( int argc, char * argv[] )
serverIface.setRequestHandler( theRequestHandler.data() );
// Iterate filters and call their requestReady() method
QgsServerFiltersMap::const_iterator filtersIterator;
for( filtersIterator = pluginFilters.constBegin(); filtersIterator != pluginFilters.constEnd(); ++filtersIterator)
for ( filtersIterator = pluginFilters.constBegin(); filtersIterator != pluginFilters.constEnd(); ++filtersIterator )
{
QgsMessageLog::logMessage( QString("Calling filters priority %1").arg( filtersIterator.key() ), "Server", QgsMessageLog::INFO );
filtersIterator.value()->requestReady();
}
#endif
@@ -432,9 +431,11 @@ int main( int argc, char * argv[] )
} // end if not exception raised

#ifdef MAPSERVER_HAVE_PYTHON_PLUGINS
// Call responseReady plugin filters
for(filtersIterator = pluginFilters.constBegin(); filtersIterator != pluginFilters.constEnd(); ++filtersIterator)
// Call responseReady plugin filters in reverse order
filtersIterator = pluginFilters.constEnd();
while ( filtersIterator != pluginFilters.constBegin() )
{
--filtersIterator;
filtersIterator.value()->responseReady();
}
#endif

0 comments on commit 59004d3

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