| 376 | } |
| 377 | |
| 378 | bool ExecutableManager::UpdateConfigurations(std::vector<Path>& updated_executable_paths) { |
| 379 | int result = 0; |
| 380 | |
| 381 | const Executable* active_executable = this->GetActiveExecutable(); |
| 382 | for (std::size_t i = 0, n = this->data.size(); i < n; ++i) { |
| 383 | if (!this->data[i].enabled) { |
| 384 | continue; |
| 385 | } |
| 386 | |
| 387 | if (this->data[i].GetActiveOptions()->working_folder.AbsolutePath() != |
| 388 | active_executable->GetActiveOptions()->working_folder.AbsolutePath()) { |
| 389 | continue; |
| 390 | } |
| 391 | |
| 392 | ++result; |
| 393 | this->data[i].configuration = active_executable->configuration; |
| 394 | updated_executable_paths.push_back(this->data[i].path); |
| 395 | } |
| 396 | |
| 397 | return result > 1; |
| 398 | } |
| 399 | |
| 400 | const Executable* ExecutableManager::GetActiveExecutable() const { |
| 401 | return const_cast<ExecutableManager*>(this)->GetActiveExecutable(); |
nothing calls this directly
no test coverage detected