Commit fb50d436 authored by Harald Sitter's avatar Harald Sitter 🌼

fix msvc compatibility

spec-wise inheriting constructors is an all or nothing sort of affair which
means NewBug needs to manually implement the default constructor because
it actually does needs a custom copy constructor (this may have to do with
qobject having a q_disable_copy call for the cctor, so probably msvc
dislikes using for that reason)
parent 9c7677f3
......@@ -24,6 +24,11 @@
namespace Bugzilla {
NewBug::NewBug(QObject *parent)
: JsonCommand(parent)
NewBug::NewBug(const NewBug &other)
: JsonCommand(other.parent())
......@@ -39,7 +39,8 @@ class NewBug : public JsonCommand
BUGZILLA_MEMBER_PROPERTY(QStringList, keywords); // not documented but also supported
using JsonCommand::JsonCommand;
// only needed because we impl the copy ctor, otherwise this could be `using`
explicit NewBug(QObject *parent = nullptr);
NewBug(const NewBug &other);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment