We do not need virtual destructoor in most of our classes.
We only need virtual destructor when we want to delete a derived class using a pointer to the base class.
class Object -> NO virtual destructor
class Command -> Virtual destructor
class TextFileR/WPimpl -> Virtual destructor
The exe is ~4KB smaller with this patch, and takes 5% less memory
Listen for WM_INPUTLANGCHANGE message in View::on_message()
Ensure GetModuleHandle is used instead of GetModuleHandleA (just some cleanup)
in UNICODE mode some version checks can be ignored in app.cpp
Add restrict keyword as define of __restrict in gcc.
Fix bad Global Lock/Unlock handling in the Clipboard function (my fault).
textfile.cpp
Explicitly delete impl_ in the TextFileR/W classes and avoid cryptic dptr
TextFileR/W::Open() returns failur if new failed (assuming non-throwing new)
We do not need virtual destructoor in most of our classes. We only need virtual destructor when we want to delete a derived class using a pointer to the base class.
class Object -> NO virtual destructor class Command -> Virtual destructor class TextFileR/WPimpl -> Virtual destructor
The exe is ~4KB smaller with this patch, and takes 5% less memory
WM_INPUTLANGCHANGE
message inView::on_message()
app.cpp
restrict
keyword as define of__restrict
in gcc.textfile.cpp
impl_
in the TextFileR/W classes and avoid cryptic dptr