1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00

graphics/dspdfviewer: repair build

dspdfviewer.cpp:50:22: error: use of bitwise '|' with boolean operands [-Werror,-Wbitwise-instead-of-logical]
 secondaryWindow(0, (r.useFullPage() | r.duplicate())? PagePart::FullPage
This commit is contained in:
Adriaan de Groot 2023-03-23 21:35:05 +01:00
parent 18c770831a
commit 5c2907039b

View File

@ -6,6 +6,15 @@ Fix build with Clang 8:
--- dspdfviewer.cpp.orig 2016-09-13 13:18:47 UTC
+++ dspdfviewer.cpp
@@ -47,7 +47,7 @@ DSPDFViewer::DSPDFViewer(const RuntimeConfiguration& r
renderFactory(r),
m_pagenumber(0),
audienceWindow(1, r.useFullPage() ? PagePart::FullPage : PagePart::LeftHalf , false, r, WindowRole::AudienceWindow),
- secondaryWindow(0, (r.useFullPage() | r.duplicate())? PagePart::FullPage : PagePart::RightHalf, true , r, WindowRole::PresenterWindow, r.useSecondScreen())
+ secondaryWindow(0, (r.useFullPage() || r.duplicate())? PagePart::FullPage : PagePart::RightHalf, true , r, WindowRole::PresenterWindow, r.useSecondScreen())
{
DEBUGOUT << tr("Starting constructor") ;
@@ -292,10 +292,10 @@ void DSPDFViewer::sendAllClockSignals() const
emit presentationClockUpdate(presentationClock());
}