On Wed, Sep 13, 2006 at 03:40:34PM +0200, Abdelrazak Younes wrote: > I am tempted to convert everything even when a std::string would > suffice. For example getFormatFromContents(), should that be: > > lyx::docstring const getFormatFromContents(lyx::docstring const & name); > > or > > std::string const getFormatFromContents(lyx::docstring const & name); > > I guess the format name could stay with std::string but this would not > bring a big performance advantage. The first solution (docstring has the > advantage that it looks nicer and we won't need to convert that to > docstring if we need to display that format name somewhere. > > What do you think?
I am pro docstring everywhere execpt on the outer rim (i.e. GUI/IO). Too much hassle to keep track of correct usage otherwise. Andre'