Fixed un-handled warnings in TreeView class