catch exceptions as const
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ic72f02ce23c85436f61f593e14e75ab34e99fabe
diff --git a/tools/p2a.cpp b/tools/p2a.cpp
index b92887f..277fcbc 100644
--- a/tools/p2a.cpp
+++ b/tools/p2a.cpp
@@ -57,14 +57,14 @@
{
bridge = std::make_unique<NuvotonPciBridge>(pci, skipBridgeDisable);
}
- catch (NotFoundException& e)
+ catch (const NotFoundException& e)
{}
try
{
bridge = std::make_unique<AspeedPciBridge>(pci, skipBridgeDisable);
}
- catch (NotFoundException& e)
+ catch (const NotFoundException& e)
{}
if (!bridge)