diff options
author | nyamatongwe <unknown> | 2009-07-21 08:29:51 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2009-07-21 08:29:51 +0000 |
commit | c13647b77a1a52aef060aa7368ed84d5e33dcde5 (patch) | |
tree | d2212da98b16a084ef3e4d9eba4382c313f60be9 /src/ScintillaBase.cxx | |
parent | 74fc1b126280c1f928dd8a8fb54bc174b92187b4 (diff) | |
download | scintilla-mirror-c13647b77a1a52aef060aa7368ed84d5e33dcde5.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))); } } |