mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
refactor!!!: migrate from shared pointers
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
c64d871a28
commit
549405ab2f
199 changed files with 742 additions and 709 deletions
|
|
@ -36,7 +36,7 @@ class Usable {
|
|||
*/
|
||||
class UseLock {
|
||||
public:
|
||||
UseLock(shared_qobject_ptr<Usable> usable) : m_usable(usable)
|
||||
UseLock(Usable* usable) : m_usable(usable)
|
||||
{
|
||||
// this doesn't use shared pointer use count, because that wouldn't be correct. this count is separate.
|
||||
m_usable->incrementUses();
|
||||
|
|
@ -44,5 +44,5 @@ class UseLock {
|
|||
~UseLock() { m_usable->decrementUses(); }
|
||||
|
||||
private:
|
||||
shared_qobject_ptr<Usable> m_usable;
|
||||
Usable* m_usable;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue