]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#4247] Added missing const in catch
authorFrancis Dupont <fdupont@isc.org>
Mon, 8 Dec 2025 14:45:07 +0000 (15:45 +0100)
committerFrancis Dupont <fdupont@isc.org>
Mon, 8 Dec 2025 14:45:35 +0000 (15:45 +0100)
src/hooks/dhcp/high_availability/tests/ha_test.cc

index f98058ad19b3eb9b8e53d2549e75167ab758408c..531cc5441f8bafaaa513e0a727f0a4ab3f64a87e 100644 (file)
@@ -122,7 +122,7 @@ HATest::runIOServiceInThread() {
     auto f = [](IOServicePtr io_service) {
         try {
             io_service->run();
-        } catch (std::exception& ex) {
+        } catch (const std::exception& ex) {
             ADD_FAILURE() << "error while running IOService::run: " << ex.what();
         } catch (...) {
             ADD_FAILURE() << "error while running IOService::run";