From fc64045420544a1269ad5012436a0aee1bb0ea6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Matox?= Date: Mon, 19 Feb 2007 20:08:11 +0000 Subject: [PATCH] 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 --- README | 4 ++-- src/CutAndPaste.C | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README b/README index 435509646f..e9487959fd 100644 --- a/README +++ b/README @@ -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. diff --git a/src/CutAndPaste.C b/src/CutAndPaste.C index 109d9c20db..daed0e234f 100644 --- a/src/CutAndPaste.C +++ b/src/CutAndPaste.C @@ -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);