Optimize #include

Authored by rominf on Mar 6 2018, 7:03 PM.

Description

Optimize #include

Test Plan: If it compiles, all is fine.

Reviewers: Spectacle, rkflx

Reviewed By: Spectacle, rkflx

Subscribers: rkflx, Spectacle

Differential Revision: https://phabricator.kde.org/D11084

Details

Auditors
rkflx
Committed
rominfMar 7 2018, 6:55 AM
Reviewer
Spectacle
Differential Revision
D11084: Optimize #include
Parents
R166:3d1895a922f5: Capture reliably with compositing off regardless of screen size
Branches
Unknown
Tags
Unknown
rkflx raised a concern with this commit.Mar 7 2018, 8:26 AM
rkflx added a project: Spectacle.
rkflx added a subscriber: rkflx.

You broke the build, please open a new Diff to fix it.

This commit now has outstanding concerns.Mar 7 2018, 8:26 AM
rominf added a comment.Mar 7 2018, 8:39 AM

This is strange. It works on my machine:

build> git fetch origin
build> git co origin/master
HEAD is now at 3b69ac3 Optimize #include
build> git rev-parse HEAD
3b69ac3a7aff4dedd4a2578174f5465f02fcc02b
build> make clean; make -s -j5 >/dev/null
/data/romas/projects/spectacle/src/Main.cpp: In function ‘int main(int, char**)’:
/data/romas/projects/spectacle/src/Main.cpp:127:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
         }
         ^
/data/romas/projects/spectacle/src/Main.cpp:128:5: note: here
     case SpectacleCore::DBusMode:
     ^~~~
/data/romas/projects/spectacle/src/SpectacleCore.cpp: In member function ‘void SpectacleCore::screenshotFailed()’:
/data/romas/projects/spectacle/src/SpectacleCore.cpp:210:30: warning: this statement may fall through [-Wimplicit-fallthrough=]
         showErrorMessage(i18n("Screenshot capture canceled or failed"));
                          ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/romas/projects/spectacle/src/SpectacleCore.cpp:211:5: note: here
     case DBusMode:
     ^~~~
build>

I'm confused.

rkflx added a comment.Mar 7 2018, 8:42 AM

Yeah, on my machine it works too. But that's not enough, it has to work everywhere, especially on the CI.

Look at the Console Output on Jenkins.

rkflx added inline comments.
/src/Gui/KSMainWindow.cpp
33

Hint hint.

rkflx accepted this commit.Mar 8 2018, 7:29 PM

This has been fixed in 941c1a517be8.

All concerns with this commit have now been addressed.Mar 8 2018, 7:29 PM