Skip to content

Commit

Permalink
update style
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-thomas committed Feb 28, 2018
1 parent c72d2cf commit 55591ee
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test/memory_tools/test_memory_tools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,22 @@
*/
TEST(TestMemoryTools, test_allocation_checking_tools) {
size_t unexpected_mallocs = 0;
auto on_unexpected_malloc = (
[&unexpected_mallocs]() {
auto on_unexpected_malloc = [&unexpected_mallocs]()
{
unexpected_mallocs++;
});
};
set_on_unexpected_malloc_callback(on_unexpected_malloc);
size_t unexpected_reallocs = 0;
auto on_unexpected_realloc = (
[&unexpected_reallocs]() {
auto on_unexpected_realloc = [&unexpected_reallocs]()
{
unexpected_reallocs++;
});
};
set_on_unexpected_realloc_callback(on_unexpected_realloc);
size_t unexpected_frees = 0;
auto on_unexpected_free = (
[&unexpected_frees]() {
auto on_unexpected_free = [&unexpected_frees]()
{
unexpected_frees++;
});
};
set_on_unexpected_free_callback(on_unexpected_free);
void * mem = nullptr;
void * remem = nullptr;
Expand Down

0 comments on commit 55591ee

Please sign in to comment.