]> git.lyx.org Git - features.git/commit
Move initial values of LyXRC members to the header
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Apr 2019 15:09:12 +0000 (17:09 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:26 +0000 (15:48 +0200)
commit34e812199fff03431d1b2ec70387ed9f2acc425a
tree7ea2db52bf78efcc92b92aa917489ba57c9b6e30
parentd2f5519ea6399bc5600a06c289f29bfd6e4bdd49
Move initial values of LyXRC members to the header

We use a C++11 construct that puts initial values of members along
with their definition. It is a good construct and now the out of line
constructor and the setDefaults() method can go.

This removes the need to define a dummy constructor in tex2lyx and
client.

The only needed change to the rest of code is a change of signature
for the user_(name|email) to return std::string. They are now called
explicitely from the constructor. We now have to include userinfo.h in
LyXRC.h, but this should not be too expensive.
src/LyXRC.cpp
src/LyXRC.h
src/client/client.cpp
src/support/userinfo.cpp
src/support/userinfo.h
src/tex2lyx/dummy_impl.cpp