Skip to content

Commit

Permalink
Cosmetic change
Browse files Browse the repository at this point in the history
  • Loading branch information
GOB52 committed Aug 13, 2024
1 parent e7cc9c2 commit cf4a2fc
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 18 deletions.
16 changes: 11 additions & 5 deletions src/M5UnitComponent.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,17 @@ class Component {
///@name Constructor
///@{
explicit Component(const uint8_t addr = 0x00);
Component(const Component&) = delete;

Component(const Component&) = delete;

Component(Component&&) noexcept = default;
///@}

///@warning COPY PROHIBITED
///@name Assignment
///@{
Component& operator=(const Component&) = delete;
Component& operator=(const Component&) = delete;

Component& operator=(Component&&) noexcept = default;
///@}

Expand Down Expand Up @@ -449,9 +452,12 @@ class PeriodicMeasurementAdapter {
static const types::attr_t attr; \
static const char name[]; \
\
cls(const cls&) = delete; \
cls& operator=(const cls&) = delete; \
cls(cls&&) noexcept = default; \
cls(const cls&) = delete; \
\
cls& operator=(const cls&) = delete; \
\
cls(cls&&) noexcept = default; \
\
cls& operator=(cls&&) noexcept = default; \
\
protected: \
Expand Down
12 changes: 8 additions & 4 deletions src/m5_unit_component/adapter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,15 @@ class Adapter {
Adapter(m5::hal::bus::Bus& bus, const uint8_t addr) : Adapter(&bus, addr) {
}
///@}
Adapter(const Adapter&) = delete;
Adapter(Adapter&&) noexcept = default;
Adapter& operator=(const Adapter&) = delete;
Adapter(const Adapter&) = delete;

Adapter(Adapter&&) noexcept = default;

Adapter& operator=(const Adapter&) = delete;

Adapter& operator=(Adapter&&) noexcept = default;
~Adapter() = default;

virtual ~Adapter() = default;

inline uint8_t address() const {
return _impl->address();
Expand Down
9 changes: 0 additions & 9 deletions src/m5_unit_component/utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,4 @@
SPDX-License-Identifier: MIT
*/

#include "utility.hpp"

namespace m5 {
namespace unit {
namespace utility {

} // namespace utility
} // namespace unit
} // namespace m5

0 comments on commit cf4a2fc

Please sign in to comment.