22 lines
1.1 KiB
Diff
22 lines
1.1 KiB
Diff
|
https://bugs.gentoo.org/941674
|
||
|
https://gitlab.com/inkscape/inkscape/-/commit/eb6dadcf1a5c660167ba43f3606c8e7cc6529787
|
||
|
|
||
|
From eb6dadcf1a5c660167ba43f3606c8e7cc6529787 Mon Sep 17 00:00:00 2001
|
||
|
From: Liam <byteslice@airmail.cc>
|
||
|
Date: Sat, 12 Oct 2024 05:22:29 -0400
|
||
|
Subject: [PATCH] gobjectptr: fix member name
|
||
|
|
||
|
--- a/src/util/gobjectptr.h
|
||
|
+++ b/src/util/gobjectptr.h
|
||
|
@@ -20,7 +20,7 @@ public:
|
||
|
GObjectPtr() = default;
|
||
|
explicit GObjectPtr(T *p, bool add_ref = false) : _p(p) { if (add_ref) _ref(); }
|
||
|
GObjectPtr(GObjectPtr const &other) : _p(other._p) { _ref(); }
|
||
|
- GObjectPtr &operator=(GObjectPtr const &other) { if (&other != this) { _unref(); _p = other.p; _ref(); } return *this; }
|
||
|
+ GObjectPtr &operator=(GObjectPtr const &other) { if (&other != this) { _unref(); _p = other._p; _ref(); } return *this; }
|
||
|
GObjectPtr(GObjectPtr &&other) noexcept : _p(other._p) { other._p = nullptr; }
|
||
|
GObjectPtr &operator=(GObjectPtr &&other) { if (&other != this) { _unref(); _p = other._p; other._p = nullptr; } return *this; }
|
||
|
~GObjectPtr() { _unref(); }
|
||
|
--
|
||
|
GitLab
|