Merge pull request #138 from milipili/master

[ScitillaComponent: Buffer: _currentStatus is used uninitialized in ctor
This commit is contained in:
Don HO 2015-05-30 02:41:46 +02:00
commit 8976240dcd

View File

@ -60,10 +60,11 @@ Buffer::Buffer(FileManager * pManager, BufferID id, Document doc, DocFileStatus
_userLangExt = TEXT(""); _userLangExt = TEXT("");
_fullPathName = TEXT(""); _fullPathName = TEXT("");
_fileName = NULL; _fileName = NULL;
_currentStatus = type;
setFileName(fileName, ndds._lang); setFileName(fileName, ndds._lang);
updateTimeStamp(); updateTimeStamp();
checkFileState(); checkFileState();
_currentStatus = type;
_isDirty = false; _isDirty = false;
_needLexer = false; //new buffers do not need lexing, Scintilla takes care of that _needLexer = false; //new buffers do not need lexing, Scintilla takes care of that