Am Sonntag, 2. April 2006 17:57 schrieb Enrico Forestieri: > Well, I am facing a problem related to it now. Please, help this > C++ newbie to solve the following problem. > > I had already the need to add an enum argument to internal_path. > Its natural declaration was in "support/os.h" in the > lyx::support::os namespace: > > enum path_target { > DEFAULT, > LATEX > } > > std::string internal_path(std::string const & p, > path_target target = DEFAULT);
May I ask you why you need it? Is that for conversion of paths that come from latex? > Now I have the need to add the same argument to ChangeExtension() > which is declared in support/filetools.h. This is because > ChangeExtension() is called either when the path is intended to > go in a .tex file or not. So I need to change the call to > ChangeExtension() in lyx::support::latex_path by adding the enum > argument with value LATEX. I don't see the need for it. Regardless how paths are represented externally, all internal paths on all platforms have always forward slashes, so ChangeExtension should just work. Georg