summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/plib/palloc.h
diff options
context:
space:
mode:
author couriersud <couriersud@gmx.org>2019-02-06 10:24:34 +0100
committer couriersud <couriersud@gmx.org>2019-02-07 21:54:11 +0100
commit3b899b86e67e3a5cc093d2dd9c0dcaeed197c806 (patch)
tree5efe135d75b1fd837549719bfa6572802870be1b /src/lib/netlist/plib/palloc.h
parentc8d0db0c83d4b72e86f6255b95ff45ccc475d85d (diff)
netlist: Refactoring after adding clang-tidy support to netlist makefile
- convert macros to c++ code. - order of device creation should not depend on std lib. - some state saving cleanup. - added support for clang-tidy to makefile. - modifications triggered by clang-tidy-9.
Diffstat (limited to 'src/lib/netlist/plib/palloc.h')
-rw-r--r--src/lib/netlist/plib/palloc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/netlist/plib/palloc.h b/src/lib/netlist/plib/palloc.h
index de992b7bc50..e8d82277ed9 100644
--- a/src/lib/netlist/plib/palloc.h
+++ b/src/lib/netlist/plib/palloc.h
@@ -111,7 +111,7 @@ public:
static owned_ptr Create(Args&&... args)
{
owned_ptr a;
- DC *x = new DC(std::forward<Args>(args)...);
+ auto *x = new DC(std::forward<Args>(args)...);
a.m_ptr = static_cast<SC *>(x);
return std::move(a);
}
@@ -176,6 +176,6 @@ public:
};
-}
+} // namespace plib
#endif /* PALLOC_H_ */