diff options
author | nyamatongwe <devnull@localhost> | 2009-07-21 08:29:51 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2009-07-21 08:29:51 +0000 |
commit | 38620a5d4d67566651271b516f01041bcf38b071 (patch) | |
tree | d2212da98b16a084ef3e4d9eba4382c313f60be9 /src/ScintillaBase.cxx | |
parent | 3b1b6e1a5bff76b6055456ce841c9a18c23f8748 (diff) | |
download | scintilla-mirror-38620a5d4d67566651271b516f01041bcf38b071.tar.gz |
Replacing SString with std::string.
Diffstat (limited to 'src/ScintillaBase.cxx')
-rw-r--r-- | src/ScintillaBase.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index 9247fce72..5e2d9114b 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -352,7 +352,6 @@ void ScintillaBase::AutoCompleteCompleted() { ac.Show(false); - listSelected = selected; SCNotification scn = {0}; scn.nmhdr.code = listType > 0 ? SCN_USERLISTSELECTION : SCN_AUTOCSELECTION; scn.message = 0; @@ -360,7 +359,7 @@ void ScintillaBase::AutoCompleteCompleted() { scn.listType = listType; Position firstPos = ac.posStart - ac.startLen; scn.lParam = firstPos; - scn.text = listSelected.c_str(); + scn.text = selected; NotifyParent(scn); if (!ac.Active()) @@ -381,9 +380,8 @@ void ScintillaBase::AutoCompleteCompleted() { } SetEmptySelection(ac.posStart); if (item != -1) { - SString piece = selected; - pdoc->InsertCString(firstPos, piece.c_str()); - SetEmptySelection(firstPos + static_cast<int>(piece.length())); + pdoc->InsertCString(firstPos, selected); + SetEmptySelection(firstPos + static_cast<int>(strlen(selected))); } } |