Closed Bug 1278392 Opened 8 years ago Closed 8 years ago

use std::unique_ptr for AccIterators

Categories

(Core :: Disability Access APIs, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla50
Tracking Status
firefox50 --- fixed

People

(Reporter: tbsaunde, Assigned: tbsaunde)

Details

Attachments

(1 file)

      No description provided.
Attachment #8760874 - Flags: review?(nfroyd)
Comment on attachment 8760874 [details] [diff] [review]
use std::unique_ptr for AccIterators

Review of attachment 8760874 [details] [diff] [review]:
-----------------------------------------------------------------

Sure.  r=me

::: accessible/base/Relation.h
@@ +47,5 @@
>      aRH.mLastIter = nullptr;
>      return *this;
>    }
>  
>    inline void AppendIter(AccIterable* aIter)

It would be even better if this function took unique_ptr<AccIterable> and all callsites (which currently pass in |new|'d things) were changed to use make_unique.  Then we could avoid |.reset()|.
Attachment #8760874 - Flags: review?(nfroyd) → review+
Pushed by tsaunders@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/234044e5e804
use std::unique_ptr for AccIterators r=froydnj
https://hg.mozilla.org/mozilla-central/rev/234044e5e804
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
Assignee: nobody → tbsaunde+mozbugs
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: