Merge lp:~aacid/qtmir/a_locker_has_no_name into lp:qtmir

Proposed by Albert Astals Cid
Status: Merged
Approved by: Gerry Boland
Approved revision: 497
Merged at revision: 514
Proposed branch: lp:~aacid/qtmir/a_locker_has_no_name
Merge into: lp:qtmir
Diff against target: 12 lines (+1/-1)
1 file modified
src/platforms/mirserver/mirwindowmanager.cpp (+1/-1)
To merge this branch: bzr merge lp:~aacid/qtmir/a_locker_has_no_name
Reviewer Review Type Date Requested Status
Unity8 CI Bot (community) continuous-integration Approve
Gerry Boland (community) Approve
Review via email: mp+295914@code.launchpad.net

Commit message

Give the locker a name

Makes the coverity parser understand the file

Description of the change

 * Are there any related MPs required for this MP to build/function as expected?
No

 * Did you perform an exploratory manual test run of your code change and any related functionality?
It compiles

 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
N/A

To post a comment you must log in.
Revision history for this message
Gerry Boland (gerboland) wrote :

I'm surprised the original compiled. I'm also wondering if this fixes stuff, as an unnamed thing will probably go out of scope immediately - since it can't be referred to. Nice catch

review: Approve
Revision history for this message
MichaƂ Sawicz (saviq) wrote :

Shame!

Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

> I'm surprised the original compiled. I'm also wondering if this fixes stuff,
> as an unnamed thing will probably go out of scope immediately - since it can't
> be referred to. Nice catch

The original is a function declaration (Scott's "most vexing parse").

Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

PASSED: Continuous integration, rev:
https://unity8-jenkins.ubuntu.com/job/lp-qtmir-ci/255/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/1817
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/1847
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/1789
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial+overlay/1789
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=yakkety/1789
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1780
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1780/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1780
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1780/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=yakkety/1780
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=yakkety/1780/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1780
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1780/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1780
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1780/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=yakkety/1780
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=yakkety/1780/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1780
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1780/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/1780
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/1780/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=yakkety/1780
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=yakkety/1780/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-qtmir-ci/255/rebuild

review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/platforms/mirserver/mirwindowmanager.cpp'
2--- src/platforms/mirserver/mirwindowmanager.cpp 2016-04-28 12:48:48 +0000
3+++ src/platforms/mirserver/mirwindowmanager.cpp 2016-05-27 08:36:37 +0000
4@@ -196,7 +196,7 @@
5 const std::shared_ptr<mir::scene::Surface>& surface,
6 const mir::shell::SurfaceSpecification& modifications)
7 {
8- QMutexLocker(&SurfaceObserver::mutex);
9+ QMutexLocker locker(&SurfaceObserver::mutex);
10 SurfaceObserver *observer = SurfaceObserver::observerForSurface(surface.get());
11 if (observer) {
12 observer->notifySurfaceModifications(modifications);

Subscribers

People subscribed via source and target branches