mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-25 17:11:59 +00:00
changed size()==0
to empty()
This commit is contained in:
parent
dc00d320ec
commit
a324178fcb
@ -303,14 +303,14 @@ struct TextDocumentCompletionHandler : MessageHandler {
|
||||
out.result.items = results;
|
||||
|
||||
// Emit completion results.
|
||||
if (existing_completion.size()==0 && is_global_completion) {
|
||||
if (existing_completion.empty() && is_global_completion) {
|
||||
LOG_S(INFO) << "Existing completion is empty, no completion results will be returned";
|
||||
Out_TextDocumentComplete out;
|
||||
out.id = request->id;
|
||||
QueueManager::WriteStdout(IpcId::TextDocumentCompletion, out);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
SortAndFilterCompletionResponse(&out, existing_completion);
|
||||
QueueManager::WriteStdout(IpcId::TextDocumentCompletion, out);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user