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
This commit is contained in:
parent
bc45c61eeb
commit
105cda7769
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue