Commit 5c381e7c authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

fix code-style

parent a708c3ab
......@@ -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;
}
......
......@@ -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;
}
}
......
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment