aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2013-05-07 19:54:09 +1000
committernyamatongwe <devnull@localhost>2013-05-07 19:54:09 +1000
commit44445c23207f13b43a62dbb3de50c48d902ce8c4 (patch)
treeb74c239d69ff18105bbb4335ad60a0e30e0d8fc4 /src/Editor.cxx
parent448c4e47a81715652d3d3584b59bb9ca21c4ab9c (diff)
downloadscintilla-mirror-44445c23207f13b43a62dbb3de50c48d902ce8c4.tar.gz
Replace X.data() with &X[0] to allow building with old releases of Visual C++.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 63deb701a..6c2197312 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -6057,7 +6057,7 @@ void Editor::CopySelectionRange(SelectionText *ss, bool allowLineCopy) {
}
}
text[size] = '\0';
- ss->Copy(text.data(), static_cast<int>(size + 1), pdoc->dbcsCodePage,
+ ss->Copy(&text[0], static_cast<int>(size + 1), pdoc->dbcsCodePage,
vs.styles[STYLE_DEFAULT].characterSet, sel.IsRectangular(), sel.selType == Selection::selLines);
}
}