Merge lp:~alan-griffiths/miral/raii-for-blob-and-cookie into lp:miral
Proposed by
Alan Griffiths
on 2017-03-07
| Status: | Merged |
|---|---|
| Approved by: | Alan Griffiths on 2017-03-15 |
| Approved revision: | 534 |
| Merged at revision: | 534 |
| Proposed branch: | lp:~alan-griffiths/miral/raii-for-blob-and-cookie |
| Merge into: | lp:miral |
| Diff against target: |
122 lines (+102/-0) 3 files modified
include/mir/client/blob.h (+50/-0) include/mir/client/cookie.h (+50/-0) miral/CMakeLists.txt (+2/-0) |
| To merge this branch: | bzr merge lp:~alan-griffiths/miral/raii-for-blob-and-cookie |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Andreas Pokorny (community) | Approve on 2017-03-15 | ||
| Gerry Boland | Approve on 2017-03-15 | ||
| Kevin DuBois (community) | 2017-03-07 | Approve on 2017-03-14 | |
|
Review via email:
|
|||
Commit Message
[libmirclientcpp] RAII wrappers for MirBlob and MirCookie
To post a comment you must log in.
| Gerry Boland (gerboland) wrote : | # |
Why include a default constructor at all?
review:
Needs Information
| Andreas Pokorny (andreas-pokorny) wrote : | # |
What is the purpose of those two friend declarations?
review:
Needs Information
| Alan Griffiths (alan-griffiths) wrote : | # |
> Why include a default constructor at all?
It makes it less surprising to use - e.g. it can be placed in a container.
| Alan Griffiths (alan-griffiths) wrote : | # |
> What is the purpose of those two friend declarations?
To make it impossible to pass the handle class directly to the release function. Vis:
Cookie cookie;
mir_
error: use of deleted function ‘void {anonymous}

lgtm