Static code review fixes.
[apps/low-level-can-service.git] / CAN-binder / low-can-binding / can / can-bus.hpp
index c300c7f..16d8cf6 100644 (file)
@@ -71,12 +71,12 @@ private:
 
        std::vector<std::pair<std::string, std::string> > can_devices_;
 public:
-       can_bus_t(utils::config_parser_t conf_file);
+       explicit can_bus_t(utils::config_parser_t conf_file);
        can_bus_t(can_bus_t&&);
 
        void set_can_devices();
-       int get_can_device_index(std::string bus_name) const;
-       std::string get_can_device_name(std::string id_name) const;
+       int get_can_device_index(const std::string& bus_name) const;
+       const std::string get_can_device_name(const std::string& id_name) const;
 
        void start_threads();
        void stop_threads();