refactor: make shared_qobject_ptr ctor explicit
This turns issues like creating two shared ptrs from a single raw ptr from popping up at runtime, instead making them a compile error. Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
@ -136,10 +136,10 @@ signals:
|
||||
|
||||
public:
|
||||
/// get the profile component by id
|
||||
Component * getComponent(const QString &id);
|
||||
ComponentPtr getComponent(const QString &id);
|
||||
|
||||
/// get the profile component by index
|
||||
Component * getComponent(int index);
|
||||
ComponentPtr getComponent(int index);
|
||||
|
||||
/// Add the component to the internal list of patches
|
||||
// todo(merged): is this the best approach
|
||||
|
Reference in New Issue
Block a user