From 44445c23207f13b43a62dbb3de50c48d902ce8c4 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 7 May 2013 19:54:09 +1000 Subject: Replace X.data() with &X[0] to allow building with old releases of Visual C++. --- src/Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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(size + 1), pdoc->dbcsCodePage, + ss->Copy(&text[0], static_cast(size + 1), pdoc->dbcsCodePage, vs.styles[STYLE_DEFAULT].characterSet, sel.IsRectangular(), sel.selType == Selection::selLines); } } -- cgit v1.2.3