X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCutAndPaste.cpp;h=c8c084a7aac39ff08d44ca21dfeb1c3a0bb6e573;hb=b9e29418471d0d275650c52f976da300f4f42501;hp=2a08444728a3e7b7087489484510b41c9b5cb4ae;hpb=2b8675105727e73b83a59c38adc8f95a17f14b05;p=lyx.git 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)