refactoring: mark shared vars as volatile
refactoring: group vars and functions
refactoring: struct BuffInfo --> class TBuffInfo
refactoring: rename bi --> buffInfo; wbi --> wbuffInfo
fix cppcheck warning: Technically the member function 'StringParent::saveToFile' can be const
fix cppcheck warning: variable is not used
fix PVS warnings: Pointer to local variable is stored outside the scope of this variable. Such a pointer will become invalid
fix PVS warnings: The 'buffInfo' function argument possesses the same name as one of the class members, which can result in a confusion
refactoring: int i --> int Index
fix potential memory leak
fix potential memory leak
fix invalid pointer (possible)
fix invalid pointer (possible)
fix null pointer dereference (possible)
fix Coverity warning: Uninitialized scalar field