Remove < USHRT_MAX check that is presumably no longer needed
The check was like this ever since 84a3db80 "initial import" (and SwRootFrame::mnBrowseWidth---which the nWidth here is ultimately assigned to---was also of type long back then). But the only use of SwRootFrame::mnBrowseWidth, in the call to SwRootFrame::GetBrowseWidth at > long nWidth = GetUpper() ? static_cast<SwRootFrame*>(GetUpper())->GetBrowseWidth() : 0; in SwPageFrame::MakeAll (sw/source/core/layout/calcmove.cxx), assigns it to a long nWidth that doesn't appear to be used in a context where it needs to be restricted to USHORT values (at least not any longer?), so assume that initial check against USHRT_MAX-2000 is no longer needed. Change-Id: Ibac19ab9d3f5499e817cae0fed79c11a452314f4 Reviewed-on: https://gerrit.libreoffice.org/49096Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Showing
Please
register
or
sign in
to comment