summaryrefslogtreecommitdiff
path: root/reportdesign
diff options
context:
space:
mode:
authorVinit Agarwal <agarwalvinit5678@gmail.com>2023-03-10 13:07:22 +0530
committerIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2023-03-19 08:00:54 +0000
commit48b1fdf31f2fd4e9de47bda40e58cde7be9bc94d (patch)
tree6f648c80f7cdfad686046b2dc9aaa28d0c1d156a /reportdesign
parentb5c3a7502f7ff6ccf0f829c1f3a2ba50b8584c41 (diff)
tdf#114441 - Convert use of sal_uLong to better integer types.
In reportdesign/source/ui/dlg/Navigator.cxx Updated type of nPos at Line number 574 to int as it would be either 1 or 2 depending on the ternary evaluation Change-Id: If2bf75ddfb66b518fec109757f32dd6e4a8b77dd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148600 Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'reportdesign')
-rw-r--r--reportdesign/source/ui/dlg/Navigator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/reportdesign/source/ui/dlg/Navigator.cxx b/reportdesign/source/ui/dlg/Navigator.cxx
index 2c4512470733..90cc2dc0d45b 100644
--- a/reportdesign/source/ui/dlg/Navigator.cxx
+++ b/reportdesign/source/ui/dlg/Navigator.cxx
@@ -571,7 +571,7 @@ void NavigatorTree::_propertyChanged(const beans::PropertyChangeEvent& _rEvent)
xParent.reset();
if ( _rEvent.PropertyName == PROPERTY_REPORTHEADERON )
{
- sal_uLong nPos = xReport->getReportHeaderOn() ? 2 : 1;
+ int nPos = xReport->getReportHeaderOn() ? 2 : 1;
traverseSection(xReport->getReportHeader(),xParent.get(),RID_SVXBMP_REPORTHEADERFOOTER,nPos);
}
else if ( _rEvent.PropertyName == PROPERTY_PAGEHEADERON )