Mir

Merge lp:~mir-team/mir/add-sync-support into lp:~kdub/mir/add-sync-support

Proposed by Alexandros Frantzis
Status: Merged
Merged at revision: 508
Proposed branch: lp:~mir-team/mir/add-sync-support
Merge into: lp:~kdub/mir/add-sync-support
Diff against target: 68 lines (+16/-14)
2 files modified
src/client/android/syncfence.h (+13/-12)
tests/unit-tests/client/test_android_syncfence.cpp (+3/-2)
To merge this branch: bzr merge lp:~mir-team/mir/add-sync-support
Reviewer Review Type Date Requested Status
Kevin DuBois Approve
Alan Griffiths (community) Approve
Review via email: mp+153301@code.launchpad.net

Commit message

android: Style fixes

Description of the change

android: Style fixes

To post a comment you must log in.
Revision history for this message
Alan Griffiths (alan-griffiths) :
review: Approve
Revision history for this message
Kevin DuBois (kdub) wrote :

ok

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/client/android/syncfence.h'
2--- src/client/android/syncfence.h 2013-03-13 19:55:46 +0000
3+++ src/client/android/syncfence.h 2013-03-14 08:55:47 +0000
4@@ -32,26 +32,26 @@
5 class IoctlWrapper
6 {
7 public:
8- IoctlWrapper() {};
9- virtual ~IoctlWrapper() {};
10+ virtual ~IoctlWrapper() {}
11 virtual int ioctl(int fd, unsigned long int request, int* timeout) const = 0;
12 virtual int close(int fd) const = 0;
13
14-private:
15- IoctlWrapper(const IoctlWrapper&) = delete;
16- IoctlWrapper& operator=(const IoctlWrapper& ) = delete;
17+protected:
18+ IoctlWrapper() = default;
19+ IoctlWrapper(IoctlWrapper const&) = delete;
20+ IoctlWrapper& operator=(IoctlWrapper const&) = delete;
21 };
22
23 class AndroidFence
24 {
25 public:
26- AndroidFence() {};
27- virtual ~AndroidFence() {};
28+ virtual ~AndroidFence() {}
29 virtual void wait() = 0;
30
31-private:
32- AndroidFence(const AndroidFence&) = delete;
33- AndroidFence& operator=(const AndroidFence& ) = delete;
34+protected:
35+ AndroidFence() = default;
36+ AndroidFence(AndroidFence const&) = delete;
37+ AndroidFence& operator=(AndroidFence const&) = delete;
38 };
39
40 class SyncFence : public AndroidFence
41@@ -63,8 +63,9 @@
42 void wait();
43
44 private:
45- SyncFence(const SyncFence&) = delete;
46- SyncFence& operator=(const SyncFence& ) = delete;
47+ SyncFence(SyncFence const&) = delete;
48+ SyncFence& operator=(SyncFence const&) = delete;
49+
50 std::shared_ptr<IoctlWrapper> const ioctl_wrapper;
51 int const fence_fd;
52 };
53
54=== modified file 'tests/unit-tests/client/test_android_syncfence.cpp'
55--- tests/unit-tests/client/test_android_syncfence.cpp 2013-03-13 19:47:44 +0000
56+++ tests/unit-tests/client/test_android_syncfence.cpp 2013-03-14 08:55:47 +0000
57@@ -42,8 +42,9 @@
58 {
59 }
60
61- std::shared_ptr<MockIoctlWrapper> ioctl_mock;
62- int dummyfd, invalid_fd;
63+ std::shared_ptr<MockIoctlWrapper> const ioctl_mock;
64+ int const dummyfd;
65+ int const invalid_fd;
66 };
67
68 TEST_F(SyncFenceTest, test_valid_fd_wait)

Subscribers

People subscribed via source and target branches