Now living with the locks in Graph, what about applying
a similar patch to have the const correctness.
I would change the patch so theConverters() will return
a const ref not only a ref:



 /// The global instance.
 /// Implementation is in LyX.cpp.
-extern Converters & theConverters();
+extern Converters const & theConverters();

+/// If the Converters need to be changed
+/// explicitly call a other function to get a reference
+extern Converters & refConverters();
+
 /// The global copy after reading lyxrc.defaults.
 /// Implementation is in LyX.cpp.
-extern Converters & theSystemConverters();
+extern Converters const & theSystemConverters();

+/// If the Converters need to be changed
+/// explicitly call a other function to get a reference
+extern Converters & refSystemConverters();
+

Reply via email to