Changeset 86128 in vbox for trunk/src/VBox/Frontends/VirtualBox/src/net/UIUpdateDefs.cpp
- Timestamp:
- Sep 15, 2020 4:14:08 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/net/UIUpdateDefs.cpp
r84319 r86128 80 80 } 81 81 82 VBoxUpdateData::VBoxUpdateData(const VBoxUpdateData &another) 83 : m_strData(another.data()) 84 , m_enmPeriodIndex(another.periodIndex()) 85 , m_date(another.internalDate()) 86 , m_enmBranchIndex(another.branchIndex()) 87 , m_version(another.version()) 88 { 89 } 90 82 91 bool VBoxUpdateData::isNoNeedToCheck() const 83 92 { … … 117 126 { 118 127 return isNoNeedToCheck() ? QCoreApplication::translate("UIUpdateManager", "Never") : m_date.toString(Qt::LocaleDate); 128 } 129 130 QDate VBoxUpdateData::internalDate() const 131 { 132 return m_date; 119 133 } 120 134 … … 143 157 } 144 158 159 bool VBoxUpdateData::isEqual(const VBoxUpdateData &another) const 160 { 161 return true 162 && (m_strData == another.data()) 163 && (m_enmPeriodIndex == another.periodIndex()) 164 && (m_date == another.internalDate()) 165 && (m_enmBranchIndex == another.branchIndex()) 166 && (m_version == another.version()) 167 ; 168 } 169 170 bool VBoxUpdateData::operator==(const VBoxUpdateData &another) const 171 { 172 return isEqual(another); 173 } 174 175 bool VBoxUpdateData::operator!=(const VBoxUpdateData &another) const 176 { 177 return !isEqual(another); 178 } 179 145 180 void VBoxUpdateData::decode() 146 181 {
Note:
See TracChangeset
for help on using the changeset viewer.