diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2015-04-11 15:58:30 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2015-04-11 15:58:30 +0000 |
commit | 33fe0182f3623d0df6bb88a2fd83f48c6c561a6b (patch) | |
tree | 896a7235b385dcbc6b53617ff5fccdccceb6e079 /lib/Rewrite | |
parent | 79e18a8550402e8b1cff354c2a0008f37da5e627 (diff) |
Remove empty non-virtual destructors or mark them =default when non-public
These add no value but can make a class non-trivially copyable. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@234689 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Rewrite')
-rw-r--r-- | lib/Rewrite/RewriteRope.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Rewrite/RewriteRope.cpp b/lib/Rewrite/RewriteRope.cpp index 1c82ee4a67..451ad07e4e 100644 --- a/lib/Rewrite/RewriteRope.cpp +++ b/lib/Rewrite/RewriteRope.cpp @@ -89,9 +89,9 @@ namespace { bool IsLeaf; RopePieceBTreeNode(bool isLeaf) : Size(0), IsLeaf(isLeaf) {} - ~RopePieceBTreeNode() {} - public: + ~RopePieceBTreeNode() = default; + public: bool isLeaf() const { return IsLeaf; } unsigned size() const { return Size; } |