Skip to content

Commit

Permalink
Fix -Wdeprecated-copy warning
Browse files Browse the repository at this point in the history
QDBusReply has an user-specified operator= but no copy constructor.

Change-Id: If7fcec3193af375f1bf2dd913d82548d6e035b48
Reviewed-by: Thiago Macieira <[email protected]>
  • Loading branch information
ogoffart committed Jan 14, 2020
1 parent 4e93e3b commit 2cbc5f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/dbus/qdbusreply.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ class QDBusReply
{
*this = reply;
}
inline QDBusReply(const QDBusReply &) = default;
inline QDBusReply& operator=(const QDBusMessage &reply)
{
QVariant data(qMetaTypeId<Type>(), nullptr);
Expand Down

0 comments on commit 2cbc5f6

Please sign in to comment.