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: rebase Created Dec. 12, 2017, 12:45 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
« no previous file with comments | « compiled/subscription/UserDefinedSubscription.cpp ('k') | compiled/user-config.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
+}
« no previous file with comments | « compiled/subscription/UserDefinedSubscription.cpp ('k') | compiled/user-config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld