diff options
| author | mitchell <unknown> | 2020-04-05 16:04:05 -0400 | 
|---|---|---|
| committer | mitchell <unknown> | 2020-04-05 16:04:05 -0400 | 
| commit | 8898dd74337c8fb7ac76e157f9afee38ffbe1438 (patch) | |
| tree | 28ca18802243188ec19e6412320257034e25b29e /src/ScintillaBase.cxx | |
| parent | 65c3b110e48a73b4bc6fe2cb1f37d2415c0aa3d2 (diff) | |
| download | scintilla-mirror-8898dd74337c8fb7ac76e157f9afee38ffbe1438.tar.gz | |
Backport: Pass argument as unique_ptr to show transfer of ownership. Add const and noexcept.
Backport of changeset 8106:f26e186e80a9.
Diffstat (limited to 'src/ScintillaBase.cxx')
| -rw-r--r-- | src/ScintillaBase.cxx | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index 0975028f3..082cb82d5 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -615,7 +615,7 @@ LexState::~LexState() {  LexState *ScintillaBase::DocumentLexState() {  	if (!pdoc->GetLexInterface()) { -		pdoc->SetLexInterface(new LexState(pdoc)); +		pdoc->SetLexInterface(Sci::make_unique<LexState>(pdoc));  	}  	return dynamic_cast<LexState *>(pdoc->GetLexInterface());  } | 
