mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1248851 part 4 - Mark UniquePtr::release() MOZ_WARN_UNUSED_RESULT. r=Waldo
MozReview-Commit-ID: FH7t5gZ0nVG
This commit is contained in:
parent
098b2fc5f8
commit
1f93fafeb4
@ -294,7 +294,7 @@ public:
|
||||
DeleterType& getDeleter() { return del(); }
|
||||
const DeleterType& getDeleter() const { return del(); }
|
||||
|
||||
Pointer release()
|
||||
MOZ_WARN_UNUSED_RESULT Pointer release()
|
||||
{
|
||||
Pointer p = ptr();
|
||||
ptr() = nullptr;
|
||||
@ -429,7 +429,7 @@ public:
|
||||
DeleterType& getDeleter() { return mTuple.second(); }
|
||||
const DeleterType& getDeleter() const { return mTuple.second(); }
|
||||
|
||||
Pointer release()
|
||||
MOZ_WARN_UNUSED_RESULT Pointer release()
|
||||
{
|
||||
Pointer p = mTuple.first();
|
||||
mTuple.first() = nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user