From 65e0aa767d56ffda5972a85459e8f073001e0324 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Fri, 13 Mar 2020 16:15:31 +0100 Subject: [PATCH] remove constructs and comments about old compilers --- src/CutAndPaste.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/CutAndPaste.cpp b/src/CutAndPaste.cpp index 2a08444728..c8c084a7aa 100644 --- a/src/CutAndPaste.cpp +++ b/src/CutAndPaste.cpp @@ -887,8 +887,6 @@ vector availableSelections(Buffer const * buf) return selList; for (auto const & cut : theCuts) { - // we do not use cit-> here because gcc 2.9x does not - // like it (JMarc) ParagraphList const & pars = cut.first; docstring textSel; for (auto const & para : pars) { @@ -1221,9 +1219,7 @@ bool pasteClipboardText(Cursor & cur, ErrorList & errorList, bool asParagraphs, theClipboard().hasTextContents(Clipboard::LyXTextType)) { string lyx = theClipboard().getAsLyX(); if (!lyx.empty()) { - // For some strange reason gcc 3.2 and 3.3 do not accept - // Buffer buffer(string(), false); - Buffer buffer("", false); + Buffer buffer(string(), false); buffer.setUnnamed(true); if (buffer.readString(lyx)) { cur.recordUndo(); @@ -1254,9 +1250,7 @@ bool pasteClipboardText(Cursor & cur, ErrorList & errorList, bool asParagraphs, docstring text = theClipboard().getAsText(types[i]); available = !text.empty(); if (available) { - // For some strange reason gcc 3.2 and 3.3 do not accept - // Buffer buffer(string(), false); - Buffer buffer("", false); + Buffer buffer(string(), false); buffer.setUnnamed(true); available = buffer.importString(names[i], text, errorList); if (available) -- 2.39.2