commit b69abd4918ba0dcd7f59241bac06e2543055f64c
Author: Scott Kostyshak <[email protected]>
Date: Tue Jul 1 10:20:43 2025 +0200
Limit "using" statement to a single .cpp
Fixes the following warning:
src/support/os.cpp:32:
src/support/os_unix.cpp:35:17: warning: using namespace directive in global
context in header [-Wheader-hygiene]
35 | using namespace std;
| ^
---
src/support/os_unix.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/support/os_unix.cpp b/src/support/os_unix.cpp
index 3f16dd8656..e24a4708e1 100644
--- a/src/support/os_unix.cpp
+++ b/src/support/os_unix.cpp
@@ -32,12 +32,12 @@
#include <CoreFoundation/CFArray.h>
#endif
-using namespace std;
-
namespace lyx {
namespace support {
namespace os {
+using namespace std;
+
namespace {
int argc_ = 0;
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs