]> git.lyx.org Git - lyx.git/commitdiff
Make a dummier LyXRC for tex2lyx
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 8 Mar 2017 15:30:22 +0000 (16:30 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 8 Mar 2017 15:37:53 +0000 (16:37 +0100)
The old version made coverity complain about uninitialized members.
The new one is the same as in support/tests/dummy_impl.cpp.

src/tex2lyx/dummy_impl.cpp

index 8ad5b7985908c109ea3e7494e4a2f8999dbb9f63..6c8d13c3677cafa80014f6cb20e82a5a85b52a8b 100644 (file)
@@ -20,7 +20,6 @@
 
 #include "Format.h"
 #include "LaTeXFeatures.h"
-#include "LyXRC.h"
 #include "output_xhtml.h"
 
 #include "support/Messages.h"
@@ -58,15 +57,8 @@ bool verbose = false;
 // Dummy LyXRC support
 //
 
-LyXRC lyxrc;
 
-/** Note that some variables are not initialized correctly. Hopefully
- * they are not used in our code (currently valgrind does not complain).
- * Linking against the full LyXRC.cpp forces us to pull too much
- * stuff.
- */
-LyXRC::LyXRC()
-{}
+class LyXRC {} lyxrc;
 
 
 //