From: Jean-Marc Lasgouttes Date: Thu, 18 Apr 2019 09:53:36 +0000 (+0200) Subject: Do not redefine a stripped-down LyXRC object. X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=8fb7785140ab6da86a534f035422592d4e9742dc;p=features.git Do not redefine a stripped-down LyXRC object. I am not sure why it was done this way, but it is not really necessary. Moreover gcc LTO does not like it. --- diff --git a/src/client/client.cpp b/src/client/client.cpp index 023e73e96b..ceea5d1742 100644 --- a/src/client/client.cpp +++ b/src/client/client.cpp @@ -12,6 +12,8 @@ #include +#include "LyXRC.h" + #include "support/ConsoleApplication.h" #include "support/debug.h" #include "support/FileName.h" @@ -70,9 +72,8 @@ namespace lyx { bool verbose = false; // Dummy LyXRC support -struct LyXRC { - string icon_set; -} lyxrc; +LyXRC::LyXRC() {} +LyXRC lyxrc; // Keep the linker happy on Windows void lyx_exit(int) diff --git a/src/tex2lyx/dummy_impl.cpp b/src/tex2lyx/dummy_impl.cpp index 79278f40a3..f38526f118 100644 --- a/src/tex2lyx/dummy_impl.cpp +++ b/src/tex2lyx/dummy_impl.cpp @@ -20,6 +20,7 @@ #include "Format.h" #include "LaTeXFeatures.h" +#include "LyXRC.h" #include "output_xhtml.h" #include "support/Messages.h" @@ -58,7 +59,8 @@ bool verbose = false; // -class LyXRC {} lyxrc; +LyXRC::LyXRC() {} +LyXRC lyxrc; //