Fix build without wayland

Without this I get: "shadow.cpp:133:1: error: no return statement in
function returning non-void [-Werror=return-type]"

REVIEW: 124390
icc-effect-5.14.5
Heiko Becker 2015-07-19 12:51:57 +02:00
parent bc45c61eeb
commit 105cda7769
1 changed files with 4 additions and 0 deletions

View File

@ -129,6 +129,8 @@ Shadow *Shadow::createShadowFromWayland(Toplevel *toplevel)
return nullptr;
}
return shadow;
#else
return nullptr;
#endif
}
@ -248,6 +250,8 @@ bool Shadow::init(const QPointer< KWayland::Server::ShadowInterface > &shadow)
}
buildQuads();
return true;
#else
return false;
#endif
}