Prefer = default for default ctors and dtors
Change-Id: I6ef86691902be8d4dfea14b029e4aa59be982854
diff --git a/src/ast_path.cpp b/src/ast_path.cpp
index 8a41279..f107cca 100644
--- a/src/ast_path.cpp
+++ b/src/ast_path.cpp
@@ -159,9 +159,7 @@
}
}
-schemaPath_::schemaPath_()
-{
-}
+schemaPath_::schemaPath_() = default;
schemaPath_::schemaPath_(const Scope scope, const std::vector<schemaNode_>& nodes, const TrailingSlash trailingSlash)
: m_scope(scope)
@@ -178,9 +176,7 @@
return this->m_nodes == b.m_nodes;
}
-dataPath_::dataPath_()
-{
-}
+dataPath_::dataPath_() = default;
dataPath_::dataPath_(const Scope scope, const std::vector<dataNode_>& nodes, const TrailingSlash trailingSlash)
: m_scope(scope)
diff --git a/src/ast_path.hpp b/src/ast_path.hpp
index e097a0c..4e21167 100644
--- a/src/ast_path.hpp
+++ b/src/ast_path.hpp
@@ -63,7 +63,7 @@
};
struct listElement_ {
- listElement_() {}
+ listElement_() = default;
listElement_(const std::string& listName, const ListInstance& keys);
bool operator==(const listElement_& b) const;
@@ -73,7 +73,7 @@
};
struct list_ {
- list_() {}
+ list_() = default;
list_(const std::string& listName);
bool operator==(const list_& b) const;
diff --git a/src/yang_access.cpp b/src/yang_access.cpp
index 79d1c08..7ca30a2 100644
--- a/src/yang_access.cpp
+++ b/src/yang_access.cpp
@@ -34,9 +34,7 @@
{
}
-YangAccess::~YangAccess()
-{
-}
+YangAccess::~YangAccess() = default;
[[noreturn]] void YangAccess::getErrorsAndThrow() const
{