Small tweaks

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@587 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2000-03-06 16:05:12 +00:00
parent def72111a5
commit e19f533b0e
5 changed files with 17 additions and 1 deletions

View File

@ -1,3 +1,13 @@
2000-03-06 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* src/support/Makefile.am (libsupport_la_SOURCES): add lyxmanip.h.
* src/buffer.C (makeLaTeXFile): add a .c_str(), since
ostringstream uses STL strings, and we might not.
* src/insets/insetspecialchar.C: add using directive.
* src/insets/insettext.C: ditto.
2000-03-06 Lars Gullik Bjønnes <larsbj@lyx.org>
* lib/layouts/seminar.layout: feeble attempt at a layout for

View File

@ -2006,7 +2006,9 @@ void Buffer::makeLaTeXFile(string const & fname,
ofs << ftnote.str();
texrow += ft_texrow;
#ifdef HAVE_SSTREAM
ftnote.str(string());
// The extra .c_str() is needed when we use
// lyxstring instead of the STL string class.
ftnote.str(string().c_str());
#else
delete [] ftnote.str();
#endif

View File

@ -18,6 +18,7 @@
#include "LaTeXFeatures.h"
#include "Painter.h"
using std::max;
InsetSpecialChar::InsetSpecialChar(Kind k)
: kind(k)

View File

@ -13,6 +13,8 @@
#include <fstream>
using std::ifstream;
using std::min;
using std::max;
#include <cstdlib>

View File

@ -37,6 +37,7 @@ libsupport_la_SOURCES = \
lstrings.C \
lstrings.h \
lyxlib.h \
lyxmanip.h \
$(LYXSTRING) lyxsum.C \
mkdir.C \
path.h \