From a324178fcbe5ed085d6c8f6f3d46eddf3ade78db Mon Sep 17 00:00:00 2001 From: rianneogi Date: Wed, 10 Jan 2018 21:32:10 +0530 Subject: [PATCH] changed `size()==0` to `empty()` --- src/messages/text_document_completion.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/messages/text_document_completion.cc b/src/messages/text_document_completion.cc index 1b43f4ec..019d5767 100644 --- a/src/messages/text_document_completion.cc +++ b/src/messages/text_document_completion.cc @@ -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);