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:
parent
e59cd1a981
commit
fe84faa878
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user