Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: compiled/traceInit.cpp

Issue 29613616: Issue 6064 - Put C++ code into a configurable namespace (Closed) Base URL: https://github.com/adblockplus/adblockpluscore.git
Patch Set: Fix debug.h to be aligned with assert2 (define vs function) and get rid of a warning in generator.cpp Created Nov. 21, 2017, 2:53 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: compiled/traceInit.cpp
diff --git a/compiled/traceInit.cpp b/compiled/traceInit.cpp
index 6ff5aa8a908b7c92243a5bcea6ff0647966272df..80eddcf32bf1886ce2a3f44ee8f993c069be1c7e 100644
--- a/compiled/traceInit.cpp
+++ b/compiled/traceInit.cpp
@@ -17,17 +17,22 @@
#include "debug.h"
-struct InitTracing
+ABP_NS_USING
+
+namespace
{
- InitTracing()
+ struct InitTracing
{
- init_tracing();
- }
+ InitTracing()
+ {
+ init_tracing();
+ }
- ~InitTracing()
- {
- shutdown_tracing();
- }
-};
+ ~InitTracing()
+ {
+ shutdown_tracing();
+ }
+ };
-InitTracing foo;
+ InitTracing foo;
+}

Powered by Google App Engine
This is Rietveld