Kaydet (Commit) d54773ad authored tarafından Markus Mohrhard's avatar Markus Mohrhard Kaydeden (comit) Michael Stahl

remove unnecessary default constructor and operator=

They are equal to the default generated and therefore unnecessary.

Change-Id: I4c0c77c025443fc074308bfd3ce2637a7e1af8bf
Reviewed-on: https://gerrit.libreoffice.org/27946Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst a5b29a70
......@@ -54,23 +54,8 @@ struct UpdateInfo
OUString Description;
std::vector< DownloadSource > Sources;
std::vector< ReleaseNote > ReleaseNotes;
UpdateInfo() : BuildId(), Version(), Description(), Sources(), ReleaseNotes() {};
UpdateInfo(const UpdateInfo& ui) : BuildId(ui.BuildId), Version(ui.Version), Description(ui.Description), Sources(ui.Sources), ReleaseNotes(ui.ReleaseNotes) {};
inline UpdateInfo & operator=( const UpdateInfo& ui );
};
UpdateInfo & UpdateInfo::operator=( const UpdateInfo& ui )
{
BuildId = ui.BuildId;
Version = ui.Version;
Description = ui.Description;
Sources = ui.Sources;
ReleaseNotes = ui.ReleaseNotes;
return *this;
}
// Returns the URL of the release note for the given position
OUString getReleaseNote(const UpdateInfo& rInfo, sal_uInt8 pos, bool autoDownloadEnabled=false);
......
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