]> git.lyx.org Git - lyx.git/commitdiff
Patch from Georg to fix support of gcc 3.2
authorJosé Matox <jamatos@lyx.org>
Mon, 19 Feb 2007 20:08:11 +0000 (20:08 +0000)
committerJosé Matox <jamatos@lyx.org>
Mon, 19 Feb 2007 20:08:11 +0000 (20:08 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17256 a592a061-630c-0410-9148-cb99ea01b6c8

README
src/CutAndPaste.C

diff --git a/README b/README
index 435509646ff6d7638c7340eee6d9947ccd50524c..e9487959fd92e8013378b65b60c6baf72c924adb 100644 (file)
--- 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.
 
index 109d9c20db3067b697bf6b9c011a0278c710b2fa..daed0e234f60f3c502979fde3e38e1cf03189440 100644 (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);