Formatting, minor tweaks

refs #369, refs #371, refs #372
This commit is contained in:
Klaus Basan
2015-02-09 19:50:21 +01:00
parent f0db7ed660
commit 45bace425d
6 changed files with 13 additions and 12 deletions

View File

@@ -103,8 +103,12 @@ namespace BlackSimPlugin
CAircraftMapper *CSimulatorFsCommon::mapperInstance()
{
static CVPilotModelMappings *mappings = new CVPilotModelMappings(true);
// tries to access simObjectsDir, if this is an mapped remote directory
// init might hang for a while
static CAircraftMapper *mapper = new CAircraftMapper(
std::unique_ptr<CVPilotModelMappings>(new CVPilotModelMappings(true)), // currently hard wired
std::unique_ptr<CVPilotModelMappings>(mappings), // currently hard wired
simObjectsDir()
);
return mapper;