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

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

Commit message

Fix clang build

    /home/tsdgeos/phablet/qtmir/qtmir/src/platforms/mirserver/mirserverhooks.cpp:40:11: error: member 'PromptSessionListener' found in multiple base classes of different types
        using PromptSessionListener::PromptSessionListener;
              ^
    /home/tsdgeos/phablet/qtmir/qtmir/src/platforms/mirserver/promptsessionlistener.h:28:7: note: member found by ambiguous name lookup
    class PromptSessionListener : public QObject
          ^
    /usr/include/mirserver/mir/scene/prompt_session_listener.h:31:7: note: member found by ambiguous name lookup
    class PromptSessionListener
          ^
    1 error generated.

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?
N/A

 * 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
Unity8 CI Bot (unity8-ci-bot) wrote :

PASSED: Continuous integration, rev:609
https://unity8-jenkins.ubuntu.com/job/lp-qtmir-ci/543/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/4277
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/4305
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4139
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4139/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4139
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4139/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4139
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4139/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4139
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4139/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4139
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4139/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4139
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4139/artifact/output/*zip*/output.zip

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

review: Approve (continuous-integration)
Revision history for this message
Gerry Boland (gerboland) wrote :

/me surprised the code not needed at all. But ok

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

This doesn't quite do the same thing as the original code. My alternative fix was:

- using PromptSessionListener::PromptSessionListener;
+ using ::PromptSessionListener::PromptSessionListener;

Which provides a PromptSessionListenerImpl::PromptSessionListenerImpl(QObject* = 0) constructor (which is Qt style as I understand it).

But that ctor could be re-introduced if ever needed.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/platforms/mirserver/mirserverhooks.cpp'
2--- src/platforms/mirserver/mirserverhooks.cpp 2017-02-08 12:19:14 +0000
3+++ src/platforms/mirserver/mirserverhooks.cpp 2017-03-02 10:30:49 +0000
4@@ -37,7 +37,6 @@
5 {
6 struct PromptSessionListenerImpl : PromptSessionListener, mir::scene::PromptSessionListener
7 {
8- using PromptSessionListener::PromptSessionListener;
9 ~PromptSessionListenerImpl();
10
11 void starting(std::shared_ptr<mir::scene::PromptSession> const& prompt_session) override;

Subscribers

People subscribed via source and target branches