Skip to content

Commit

Permalink
Bug 1613985 - Use default for equivalent-to-default constructors/dest…
Browse files Browse the repository at this point in the history
…ructors in mozglue. r=glandium

Differential Revision: https://phabricator.services.mozilla.com/D65495
  • Loading branch information
sigiesec committed Mar 10, 2020
1 parent d4b991c commit 900f48f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mozglue/baseprofiler/public/BaseProfilingStack.h
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ class ProfilingStackFrame {
//
class ProfilingStack final {
public:
ProfilingStack() : stackPointer(0) {}
ProfilingStack() = default;

MFBT_API ~ProfilingStack();

Expand Down Expand Up @@ -465,7 +465,7 @@ class ProfilingStack final {
// This is an atomic variable that uses ReleaseAcquire memory ordering.
// See the "Concurrency considerations" paragraph at the top of this file
// for more details.
Atomic<uint32_t, ReleaseAcquire> stackPointer;
Atomic<uint32_t, ReleaseAcquire> stackPointer{0};
};

class AutoGeckoProfilerEntry;
Expand Down
2 changes: 1 addition & 1 deletion mozglue/misc/Printf.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class PrintfTarget {

protected:
MFBT_API PrintfTarget();
virtual ~PrintfTarget() {}
virtual ~PrintfTarget() = default;

/* Subclasses override this. It is called when more output is
available. It may be called with len==0. This should return
Expand Down

0 comments on commit 900f48f

Please sign in to comment.