Parcourir la source

[2210] style fix: use const& for catch

JINMEI Tatuya il y a 12 ans
Parent
commit
f6f1661103
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/bin/auth/datasrc_clients_mgr.h

+ 2 - 2
src/bin/auth/datasrc_clients_mgr.h

@@ -237,11 +237,11 @@ private:
                 typename MutexType::Locker locker(*map_mutex_);
                 std::swap(new_clients_map, *clients_map_);
                 // lock is released by leaving scope
-            } catch (isc::data::TypeError type_error) {
+            } catch (const isc::data::TypeError& type_error) {
                 LOG_ERROR(auth_logger,
                     AUTH_DATASRC_CLIENTS_BUILDER_RECONFIGURE_CONFIG_ERROR).
                     arg(type_error.what());
-            } catch (std::exception exc) {
+            } catch (const std::exception& exc) {
                 LOG_ERROR(auth_logger,
                     AUTH_DATASRC_CLIENTS_BUILDER_RECONFIGURE_ERROR).
                     arg(exc.what());