Fix compiler warnings & linker errors:

Changes introduced with 1.7.0-b5 and 1.7.0-b6 could result in compiler
warnings and/or linker errors when compiling in certain configurations.
This commit is contained in:
Edward Hennis
2020-12-11 15:14:35 -08:00
committed by Nik Bougalis
parent 8e38d8e6f0
commit e96a719724
5 changed files with 8 additions and 5 deletions

View File

@@ -108,6 +108,7 @@ public:
SHAMapInnerNode(SHAMapInnerNode const&) = delete;
SHAMapInnerNode&
operator=(SHAMapInnerNode const&) = delete;
~SHAMapInnerNode();
std::shared_ptr<SHAMapTreeNode>
clone(std::uint32_t cowid) const override;

View File

View File

@@ -49,6 +49,8 @@ SHAMapInnerNode::SHAMapInnerNode(
{
}
SHAMapInnerNode::~SHAMapInnerNode() = default;
template <class F>
void
SHAMapInnerNode::iterChildren(F&& f) const

View File

@@ -217,11 +217,6 @@ public:
getChildIndex(std::uint16_t isBranch, int i) const;
};
inline TaggedPointer::~TaggedPointer()
{
destroyHashesAndChildren();
}
} // namespace ripple
#endif

View File

@@ -636,4 +636,9 @@ TaggedPointer::getChildren() const
return result;
};
inline TaggedPointer::~TaggedPointer()
{
destroyHashesAndChildren();
}
} // namespace ripple