Skip to content

Commit

Permalink
Allocate the service's singleton with 'new' to save some bytes in part1
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeuz authored and m-mcgowan committed Oct 3, 2017
1 parent 8836b4f commit 7925fda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/src/diagnostics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ class Diagnostics {
}

static Diagnostics* instance() {
static Diagnostics diag;
return &diag;
static Diagnostics* diag = new Diagnostics();
return diag;
}

private:
Expand Down

0 comments on commit 7925fda

Please sign in to comment.