Commit f9107429 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

Gerrit: Initialize all members

dependeOnNumber and neededByNumber were not initialized.

Change-Id: I12b90b842d540ae0e8ac9ff5be1be2ace2473ba8
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>
parent 69a4f80c
......@@ -71,16 +71,14 @@ public:
class GerritChange
{
public:
GerritChange() : number(0), depth(-1) {}
bool isValid() const { return number && !url.isEmpty() && !project.isEmpty(); }
QString filterString() const;
QStringList gitFetchArguments(const QSharedPointer<GerritParameters> &p) const;
QString url;
int number;
int dependsOnNumber;
int neededByNumber;
int number = 0;
int dependsOnNumber = 0;
int neededByNumber = 0;
QString title;
QString owner;
QString email;
......@@ -89,7 +87,7 @@ public:
QString status;
QDateTime lastUpdated;
GerritPatchSet currentPatchSet;
int depth;
int depth = -1;
};
typedef QSharedPointer<GerritChange> GerritChangePtr;
......
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