Commit 24d507f4 authored by Simon Pilgrim's avatar Simon Pilgrim
Browse files

CrashRecoveryContextCleanup - fix uninitialized variable warnings. NFCI.

Remove default values from constructor.
parent 2073dd2d
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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