diff options
author | Neil <nyamatongwe@gmail.com> | 2014-05-01 13:00:30 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2014-05-01 13:00:30 +1000 |
commit | fa48491b1fe48136f3ba5be185cf4d3442cdaf2f (patch) | |
tree | 8e91195916a203aa2259150c0a2c81352cd94905 | |
parent | 473aec2a79ff0dae24017ea12c176c019560692c (diff) | |
download | scintilla-mirror-fa48491b1fe48136f3ba5be185cf4d3442cdaf2f.tar.gz |
Use explicit call as implicit conversion operator does not work in context.
-rw-r--r-- | qt/ScintillaEditBase/ScintillaQt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt/ScintillaEditBase/ScintillaQt.cpp b/qt/ScintillaEditBase/ScintillaQt.cpp index fae5b730d..b31aa0727 100644 --- a/qt/ScintillaEditBase/ScintillaQt.cpp +++ b/qt/ScintillaEditBase/ScintillaQt.cpp @@ -339,7 +339,7 @@ void ScintillaQt::PasteFromMode(QClipboard::Mode clipboardMode_) bool isRectangular = IsRectangularInMime(mimeData); QString text = clipboard->text(clipboardMode_); QByteArray utext = BytesForDocument(text); - std::string dest(utext, utext.length()); + std::string dest(utext.constData(), utext.length()); SelectionText selText; selText.Copy(dest, pdoc->dbcsCodePage, CharacterSetOfDocument(), isRectangular, false); |