Use smart pointer in SciEdit.cpp