From c8f79c36b4d76f0ff405b22cd1110fe467562772 Mon Sep 17 00:00:00 2001 From: Alexander Shaduri Date: Mon, 6 Mar 2023 19:18:16 +0400 Subject: [PATCH] Minor cleanups. --- src/applib/selftest.cpp | 2 +- src/applib/smartctl_ata_text_parser.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/applib/selftest.cpp b/src/applib/selftest.cpp index e254c3a..bf65bf7 100644 --- a/src/applib/selftest.cpp +++ b/src/applib/selftest.cpp @@ -227,7 +227,7 @@ std::string SelfTest::force_stop(const std::shared_ptr& smartct // update status variables. note: the returned error is an error in logic, -// not an hw defect error. +// not a hw defect error. std::string SelfTest::update(const std::shared_ptr& smartctl_ex) { using namespace std::literals; diff --git a/src/applib/smartctl_ata_text_parser.cpp b/src/applib/smartctl_ata_text_parser.cpp index 3ef0da7..4cf141f 100644 --- a/src/applib/smartctl_ata_text_parser.cpp +++ b/src/applib/smartctl_ata_text_parser.cpp @@ -318,7 +318,7 @@ bool SmartctlAtaTextParser::parse_section_info(const std::string& body) { this->set_data_section_info(body); - AtaStorageProperty::Section section = AtaStorageProperty::Section::info; + const AtaStorageProperty::Section section = AtaStorageProperty::Section::info; // split by lines. // e.g. Device Model: ST3500630AS