Skip to content
Snippets Groups Projects
Commit 014ea8e9 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

SelectionProperty::setCertainItem(2) rm optional args

parent c77bd4d9
No related branches found
No related tags found
1 merge request!2364rename SelectionProperty -> PolyItem
...@@ -93,10 +93,10 @@ public: ...@@ -93,10 +93,10 @@ public:
} }
//! Directly set the new item. //! Directly set the new item.
template <typename S, typename... ArgsForConstructor> template <typename S>
S* setCertainItem(ArgsForConstructor... argsForConstructor) S* setCertainItem()
{ {
auto* s = new S(argsForConstructor...); auto* s = new S();
if (s != nullptr && m_initializer) if (s != nullptr && m_initializer)
m_initializer(s, m_p.get()); m_initializer(s, m_p.get());
m_p.reset(s); m_p.reset(s);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment