platform2: sweep the lint errors identified by the updated linter
cpplint.py has been updated and identified new issues in existing
code. Stuff like overridden functions that specify 'override' should
not be marked as 'virtual', and constructors with no parameters
should not be marked as 'explicit'.
BUG=None
TEST=cpplint.py `find ./platform2 -name *.cc -or -name *.h`
Change-Id: Ibb9de43286d874d076ffd5ebb1b13c36ec794f01
Reviewed-on: https://chromium-review.googlesource.com/211950
Reviewed-by: Alex Vakulenko <avakulenko@chromium.org>
Commit-Queue: Alex Vakulenko <avakulenko@chromium.org>
Tested-by: Alex Vakulenko <avakulenko@chromium.org>
diff --git a/hardware.h b/hardware.h
index 7ab879a..1fa2edf 100644
--- a/hardware.h
+++ b/hardware.h
@@ -18,22 +18,22 @@
class Hardware : public HardwareInterface {
public:
Hardware();
- virtual ~Hardware() override;
+ ~Hardware() override;
// HardwareInterface methods.
- virtual std::string BootKernelDevice() const override;
- virtual std::string BootDevice() const override;
- virtual bool IsBootDeviceRemovable() const override;
- virtual std::vector<std::string> GetKernelDevices() const override;
- virtual bool IsKernelBootable(const std::string& kernel_device,
- bool* bootable) const override;
- virtual bool MarkKernelUnbootable(const std::string& kernel_device) override;
- virtual bool IsOfficialBuild() const override;
- virtual bool IsNormalBootMode() const override;
- virtual bool IsOOBEComplete(base::Time* out_time_of_oobe) const override;
- virtual std::string GetHardwareClass() const override;
- virtual std::string GetFirmwareVersion() const override;
- virtual std::string GetECVersion() const override;
+ std::string BootKernelDevice() const override;
+ std::string BootDevice() const override;
+ bool IsBootDeviceRemovable() const override;
+ std::vector<std::string> GetKernelDevices() const override;
+ bool IsKernelBootable(const std::string& kernel_device,
+ bool* bootable) const override;
+ bool MarkKernelUnbootable(const std::string& kernel_device) override;
+ bool IsOfficialBuild() const override;
+ bool IsNormalBootMode() const override;
+ bool IsOOBEComplete(base::Time* out_time_of_oobe) const override;
+ std::string GetHardwareClass() const override;
+ std::string GetFirmwareVersion() const override;
+ std::string GetECVersion() const override;
private:
DISALLOW_COPY_AND_ASSIGN(Hardware);