Am Montag, 5. November 2018 22:05:26 CET schrieb Jean-Marc Lasgouttes <lasgout...@lyx.org>: > Le 04/11/2018 à 22:15, Kornel Benko a écrit : > > Am Sonntag, 4. November 2018 14:50:00 CET schrieb Jean-Marc Lasgouttes > > <lasgout...@lyx.org>: > >> Kornel, what if setIgnoreFormat() was renamed to set()? Then calling > >> IgnoreFormats::set() is not really worse than your setIgnoreFormat() > >> helper? > > > > It is not meant as a convenient debugging function. I was hoping to use > > this function > > from a dialog where one would set ignoring options. > > I stand corrected, then. > > > Please no. We need exactly the same data for all subsequent matches. I > > prefer > > to not recreate them each time. And if we recreate it, we need another set > > of static vars > > for initialization ... this makes no sense for me. > > So what you are describing is a global variable. I think it is better in > general to get rid of the static specifiers and declare a global > function of this type.
Yes, that was the intent ... apparently I failed. > Then you should make sure that your function setIgnoreFormat is declared > outside of the big anonymous namespace. This means that the class itself > should be declared outside of the namespace. I will try, but I fear I do not understand. If the variables are global, does that mean that they are accessible from anywhere? I'd prefer them to be private. Or, if it is not too much work, could you do the change? > JMarc Kornel
signature.asc
Description: This is a digitally signed message part.