Commit 56f52da5 authored by Łukasz Matysiak's avatar Łukasz Matysiak

Make Printer::printDeviceDetails const

parent 7e1a7f87
......@@ -272,7 +272,7 @@ void Printer::printLine() const
std::cout << std::setfill('-') << std::setw(80) << "-" << std::setfill(' ') << std::endl;
}
void Printer::printDeviceDetails(hw_item hw, FILE *f)
void Printer::printDeviceDetails(hw_item hw, FILE *f) const
{
std::unique_ptr<hd_data_t> hd_data{new hd_data_t()};
hd_t *hd = hd_list(hd_data.get(), hw, 1, nullptr);
......
......@@ -52,7 +52,7 @@ public:
void printInstalledConfigs(const std::string& deviceType,
const std::vector<std::shared_ptr<Config>>& installedConfigs) const;
void printConfigDetails(const Config& config) const;
void printDeviceDetails(hw_item hw, FILE *f = stdout);
void printDeviceDetails(hw_item hw, FILE *f = stdout) const;
private:
void printLine() const;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment