forked from qt-creator/qt-creator
LSP: Explicify API
Change-Id: Id208a420fd3e1e23d3279c4f1f19bdbed994a8d3 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -71,7 +71,7 @@ DidChangeTextDocumentParams::DidChangeTextDocumentParams(
|
||||
const VersionedTextDocumentIdentifier &docId, const QString &text)
|
||||
{
|
||||
setTextDocument(docId);
|
||||
setContentChanges({text});
|
||||
setContentChanges({TextDocumentContentChangeEvent(text)});
|
||||
}
|
||||
|
||||
bool DidChangeTextDocumentParams::isValid(ErrorHierarchy *error) const
|
||||
@@ -91,7 +91,7 @@ DidCloseTextDocumentParams::DidCloseTextDocumentParams(const TextDocumentIdentif
|
||||
}
|
||||
|
||||
DidChangeTextDocumentParams::TextDocumentContentChangeEvent::TextDocumentContentChangeEvent(
|
||||
const QString text)
|
||||
const QString &text)
|
||||
{
|
||||
setText(text);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user