commit | 26601e8919552a52bd8b23aa85fac30088f03303 | [log] [tgz] |
---|---|---|
author | Patrick Williams <patrick@stwcx.xyz> | Wed Oct 06 12:43:25 2021 -0500 |
committer | Ed Tanous <ed@tanous.net> | Thu Oct 07 15:43:19 2021 +0000 |
tree | bdec8ba9c2c2c08ec1e0239ed69ec2616f45d2cf | |
parent | a040ec4013d2deb544fed4b1453d51a35fc26499 [diff] [blame] |
catch exceptions as const Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I9e474f2b3e936b9961eaa08693744c466736e768
diff --git a/src/CPUSensorMain.cpp b/src/CPUSensorMain.cpp index 73f2ee1..3d602bf 100644 --- a/src/CPUSensorMain.cpp +++ b/src/CPUSensorMain.cpp
@@ -208,7 +208,7 @@ bus = std::stoi(busStr); addr = std::stoi(addrStr, nullptr, 16); } - catch (std::invalid_argument&) + catch (const std::invalid_argument&) { continue; }