From 38412b8dddbd1a60f34baa663a12d8285190e3a8 Mon Sep 17 00:00:00 2001 From: Uwe Seimet Date: Mon, 28 Feb 2022 19:41:08 +0100 Subject: [PATCH] Made method const --- src/raspberrypi/devices/device_factory.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/raspberrypi/devices/device_factory.h b/src/raspberrypi/devices/device_factory.h index 7b6ec53b..45bf00bb 100644 --- a/src/raspberrypi/devices/device_factory.h +++ b/src/raspberrypi/devices/device_factory.h @@ -39,7 +39,7 @@ public: const set& GetSectorSizes(PbDeviceType type) { return sector_sizes[type]; } const set& GetSectorSizes(const string&); const set GetCapacities(PbDeviceType) const; - const map& GetDefaultParams(PbDeviceType type) { return default_params[type]; } + const map& GetDefaultParams(PbDeviceType type) const { return default_params.at(type); } const list GetNetworkInterfaces() const; const map GetExtensionMapping() const { return extension_mapping; }