s/auto_ptr/unique_ptr/

Review Request #124027 - Created June 8, 2015 and submitted

Information
Jan Kundrát
okular
frameworks
Reviewers
okular
The old auto_ptr was used for simple RAII. None of the auto_ptr flaws
were apparent in that context, but given that that class is actively
deprecated and that compilers warn about its use, it's better to switch
to its drop-in replacement.

My reason for not using QScopedPointer is that the C++11 version works
well enough, Okular is being built in C++11 mode anyway, unique_ptr
works on the KF5-minimal-mandated-compilers according to their docs, and
therefore there's no point in using something with a different API
(QScopedPointer) just because its name begins with a Q.

  
Albert Astals Cid
Albert Astals Cid
Jan Kundrát
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit abd30fb774f6d0cd5abf93019f652c0ca54778f4 by Jan Kundrát to branch frameworks.
Loading...