1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00

CrashRecoveryContextCleanup - fix uninitialized variable warnings. NFCI.

Remove default values from constructor.
This commit is contained in:
Simon Pilgrim 2019-11-08 16:19:21 +00:00
parent e59cd1a981
commit fe84faa878

View File

@ -111,12 +111,12 @@ public:
/// a crash recovery context.
class CrashRecoveryContextCleanup {
protected:
CrashRecoveryContext *context;
CrashRecoveryContext *context = nullptr;
CrashRecoveryContextCleanup(CrashRecoveryContext *context)
: context(context), cleanupFired(false) {}
: context(context) {}
public:
bool cleanupFired;
bool cleanupFired = false;
virtual ~CrashRecoveryContextCleanup();
virtual void recoverResources() = 0;
@ -127,7 +127,7 @@ public:
private:
friend class CrashRecoveryContext;
CrashRecoveryContextCleanup *prev, *next;
CrashRecoveryContextCleanup *prev = nullptr, *next = nullptr;
};
/// Base class of cleanup handler that controls recovery of resources of the