trunk/branch integration: unnamed namespace

This commit is contained in:
Marian Krivos 2011-08-23 06:56:40 +00:00
parent d6136d3088
commit 7b0716effa

View File

@ -136,10 +136,15 @@ void NestedDiagnosticContext::clear()
}
namespace
{
static ThreadLocal<NestedDiagnosticContext> ndc;
}
NestedDiagnosticContext& NestedDiagnosticContext::current()
{
static ThreadLocal<NestedDiagnosticContext> ndc;
return ndc.get();
return ndc.get();
}