commit 22b358727dd526715767f9cc7c6c0fce85e2a8e0 Author: Scott Kostyshak <skost...@lyx.org> Date: Tue Jul 1 10:05:10 2025 +0200
Include the .h file, not the .cpp file This fixes the following Clang warnings: src/insets/InsetIndexMacro.cpp:34:17: warning: using namespace directive in global context in header [-Wheader-hygiene] 34 | using namespace std; | ^ src/insets/InsetIndexMacro.cpp:35:22: warning: using namespace directive in global context in header [-Wheader-hygiene] 35 | using namespace lyx::support; | ^ --- src/factory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/factory.cpp b/src/factory.cpp index 310fbb8b86..b72e24ec39 100644 --- a/src/factory.cpp +++ b/src/factory.cpp @@ -33,7 +33,7 @@ #include "insets/InsetHyperlink.h" #include "insets/InsetInclude.h" #include "insets/InsetIndex.h" -#include "insets/InsetIndexMacro.cpp" +#include "insets/InsetIndexMacro.h" #include "insets/InsetInfo.h" #include "insets/InsetIPA.h" #include "insets/InsetIPAMacro.h" -- lyx-cvs mailing list lyx-cvs@lists.lyx.org https://lists.lyx.org/mailman/listinfo/lyx-cvs