mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 06:16:03 +00:00
fix: avoid using namespace std;
in header files
using directive in a header file is a bad practice because it may lead to unexpected results. https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rs-using-directive
This commit is contained in:
@@ -28,6 +28,8 @@
|
||||
#include "lib.h"
|
||||
#include "parser.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
int dirat_for_each(int dirfd, const char *name, void *data,
|
||||
int (* cb)(int, const char *, struct stat *, void *))
|
||||
{
|
||||
|
Reference in New Issue
Block a user