mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-01-06 02:55:43 -05:00
Replace EntryAttachments and EntryAttributes operator=() with copyDataFrom().
QObjects are not supposed to have assignment operators.
This commit is contained in:
parent
c7107de2a7
commit
a50d2709e7
6 changed files with 24 additions and 28 deletions
|
|
@ -181,19 +181,17 @@ bool EntryAttributes::areCustomKeysDifferent(const EntryAttributes* other)
|
|||
return false;
|
||||
}
|
||||
|
||||
EntryAttributes& EntryAttributes::operator=(const EntryAttributes& other)
|
||||
void EntryAttributes::copyDataFrom(const EntryAttributes* other)
|
||||
{
|
||||
if (*this != other) {
|
||||
if (*this != *other) {
|
||||
Q_EMIT aboutToBeReset();
|
||||
|
||||
m_attributes = other.m_attributes;
|
||||
m_protectedAttributes = other.m_protectedAttributes;
|
||||
m_attributes = other->m_attributes;
|
||||
m_protectedAttributes = other->m_protectedAttributes;
|
||||
|
||||
Q_EMIT reset();
|
||||
Q_EMIT modified();
|
||||
}
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
bool EntryAttributes::operator==(const EntryAttributes& other) const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue