1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

fix code-style

This commit is contained in:
Steffen Vogel 2020-07-27 16:40:48 +02:00
parent f38fccc20a
commit 7e8f86a808
3 changed files with 3 additions and 4 deletions

View file

@ -233,7 +233,7 @@ HostDmaRam::HostDmaRamAllocator::~HostDmaRamAllocator()
try {
auto translation = mm.getTranslationFromProcess(getAddrSpaceId());
baseVirt = reinterpret_cast<void*>(translation.getLocalAddr(0));
} catch(const std::out_of_range&) {
} catch (const std::out_of_range&) {
/* Not mapped, nothing to do */
return;
}

View file

@ -167,7 +167,7 @@ MemoryManager::pathCheck(const MemoryGraph::Path &path)
auto mapping = memoryGraph.getEdge(mappingId);
try {
translation += getTranslationFromMapping(*mapping);
} catch(const InvalidTranslation&) {
} catch (const InvalidTranslation&) {
return false;
}
}

View file

@ -79,8 +79,7 @@ int Tool::run()
logger->info(CLR_GRN("Goodbye!"));
return ret;
}
catch (std::runtime_error &e) {
} catch (const std::runtime_error &e) {
logger->error("{}", e.what());
return -1;