From 2f700ab9ca10c3111a793654aea7e8bd7fb7dce5 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Tue, 29 Jun 2021 09:16:24 -0500 Subject: [PATCH] Moved using namespace within PyBind11 function This fixes a static analyzer warning about using namespace declaration in headers. --- FWCore/PyDevParameterSet/src/PyBind11Module.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/FWCore/PyDevParameterSet/src/PyBind11Module.h b/FWCore/PyDevParameterSet/src/PyBind11Module.h index c6b20b7c6b8ed..4d2ffad0aa18f 100644 --- a/FWCore/PyDevParameterSet/src/PyBind11Module.h +++ b/FWCore/PyDevParameterSet/src/PyBind11Module.h @@ -32,9 +32,8 @@ #include -using namespace cmspython3; - PYBIND11_MODULE(libFWCorePyDevParameterSet, m) { + using namespace cmspython3; pybind11::register_exception_translator([](std::exception_ptr p) { try { if (p)