Commit 28ed1ff2 authored by Oliver Sander's avatar Oliver Sander

Fix return value of PageView::capabilityFlags

The return type of that method is Okular::View::CapabilityFlags.
Hence, returning 'nullptr' as was done previously cannot be correct,
and 'NoFlag' should be used instead.  As both evaluate to '0'
internally there should not be any functional difference.
parent e3af0ff3
Pipeline #7991 passed with stage
in 20 minutes and 52 seconds
......@@ -1551,7 +1551,7 @@ Okular::View::CapabilityFlags PageView::capabilityFlags( ViewCapability capabili
case TrimMargins:
return CapabilityRead | CapabilityWrite | CapabilitySerializable;
return nullptr;
return NoFlag;
QVariant PageView::capability( ViewCapability capability ) const
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment