[Libreoffice-commits] core.git: extensions/source
Markus Mohrhard
markus.mohrhard at googlemail.com
Fri Aug 26 13:11:50 UTC 2016
extensions/source/update/check/updateinfo.hxx | 15 ---------------
1 file changed, 15 deletions(-)
New commits:
commit d54773ada2301d3a5c1ffc702715cd2d4006ad53
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Mon Aug 8 04:43:26 2016 +0200
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/27946
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Michael Stahl <mstahl at redhat.com>
diff --git a/extensions/source/update/check/updateinfo.hxx b/extensions/source/update/check/updateinfo.hxx
index 4788405..a63e233 100644
--- a/extensions/source/update/check/updateinfo.hxx
+++ b/extensions/source/update/check/updateinfo.hxx
@@ -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);
More information about the Libreoffice-commits
mailing list