why not use 

```
std::string settingsBackupFile = CProfilesManager::Get().GetSettingsFile().append(".bak");
```

like you did below?
saves calling "CProfilesManager::Get().GetSettingsFile()" 3 times and getting the same result.