Patch from Georg to fix support of gcc 3.2

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17256 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
José Matox 2007-02-19 20:08:11 +00:00
parent 5db7753f7b
commit fc64045420
2 changed files with 8 additions and 4 deletions

4
README
View File

@ -75,8 +75,8 @@ How do I upgrade from an earlier LyX version?
What do I need to compile LyX from the source distribution?
* A good C++ compiler. Development is being done mainly with
gcc/g++, but some others work also. As of LyX 1.4.0, you need at
least gcc 3.x.
gcc/g++, but some others work also. As of LyX 1.5.0, you need at
least gcc 3.2.x.
* The Qt4 library, version 4.1.1 or newer.

View File

@ -331,7 +331,9 @@ PitPosPair eraseSelectionHelper(BufferParams const & params,
void putClipboard(ParagraphList const & paragraphs, textclass_type textclass,
docstring const & plaintext)
{
Buffer buffer(string(), false);
// For some strange reason gcc 3.2 and 3.3 do not accept
// Buffer buffer(string(), false);
Buffer buffer("", false);
buffer.setUnnamed(true);
buffer.paragraphs() = paragraphs;
buffer.params().textclass = textclass;
@ -728,7 +730,9 @@ void pasteClipboard(LCursor & cur, ErrorList & errorList, bool asParagraphs)
if (theClipboard().hasLyXContents()) {
string lyx = theClipboard().getAsLyX();
if (!lyx.empty()) {
Buffer buffer(string(), false);
// For some strange reason gcc 3.2 and 3.3 do not accept
// Buffer buffer(string(), false);
Buffer buffer("", false);
buffer.setUnnamed(true);
if (buffer.readString(lyx)) {
recordUndo(cur);