mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Merge pull request #1372 from TurtleHero/patch-1
Fix "explicitely" -> "explicitly"
This commit is contained in:
commit
0568553eb8
1 changed files with 1 additions and 1 deletions
|
@ -216,5 +216,5 @@ Keep the element on the stack if possible. If you need a pointer or have complex
|
|||
|
||||
#### QObject classes
|
||||
- Use the [object tree](https://doc.qt.io/qt-5/objecttrees.html#) to manage lifetime where possible. Objects are destroyed when their parent object is destroyed.
|
||||
- If you have to explicitely delete an object use `variable->deleteLater()` instead of `delete variable`. This ensures that it will be deleted on the correct thread.
|
||||
- If you have to explicitly delete an object use `variable->deleteLater()` instead of `delete variable`. This ensures that it will be deleted on the correct thread.
|
||||
- If an object doesn't have a parent consider using `std::unique_ptr<Type, DeleteLater>` with `DeleteLater` from "src/common/Common.hpp". This will call `deleteLater()` on the pointer once it goes out of scope or the object is destroyed.
|
||||
|
|
Loading…
Reference in a new issue