Skip to content

Commit 79eb493

Browse files
committed
Use =default for special methods
1 parent 7ec26bb commit 79eb493

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/include/FlashString/ObjectIterator.hpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ template <class ObjectType, typename ElementType> class ObjectIterator
4545
{
4646
}
4747

48-
~ObjectIterator()
49-
{
50-
}
48+
~ObjectIterator() = default;
5149

5250
ObjectIterator& operator++()
5351
{

src/include/FlashString/StringPrinter.hpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ class StringPrinter
4343
StringPrinter& operator=(const StringPrinter&) = delete;
4444
StringPrinter& operator=(StringPrinter&&) = delete;
4545

46-
~StringPrinter()
47-
{
48-
}
46+
~StringPrinter() = default;
4947

5048
size_t printTo(Print& p) const;
5149

0 commit comments

Comments
 (0)