[LyX/master] remove constructs and comments about old compilers
Jean-Marc Lasgouttes
lasgouttes at lyx.org
Fri Mar 13 15:02:30 UTC 2020
commit 65e0aa767d56ffda5972a85459e8f073001e0324
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date: Fri Mar 13 16:15:31 2020 +0100
remove constructs and comments about old compilers
---
src/CutAndPaste.cpp | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/src/CutAndPaste.cpp b/src/CutAndPaste.cpp
index 2a08444..c8c084a 100644
--- a/src/CutAndPaste.cpp
+++ b/src/CutAndPaste.cpp
@@ -887,8 +887,6 @@ vector<docstring> 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)
More information about the lyx-cvs
mailing list