summaryrefslogtreecommitdiff
path: root/sw/source/ui/fldui/flddok.hxx
diff options
context:
space:
mode:
authorShady Mohamed <shadimabdrawy1999@gmail.com>2023-02-27 12:51:42 +0200
committerHossein <hossein@libreoffice.org>2023-03-02 13:04:07 +0000
commit350f51569c8d8498eabcbeef4323083c8e13371e (patch)
treeab505a729cc608b8ca501922761e5899e30f9525 /sw/source/ui/fldui/flddok.hxx
parent4d0d98238b427b98310b6d0624e21bbec6d553f8 (diff)
tdf#114441 Convert sal_uLong to better data type sal_uInt32
In this patch, all the instances of sal_uLong in sw/source/ui/fldui/ folder are changed to better types. The variable m_nOldFormat is changed to the type sal_uInt32 in fldfunc.hxx as we have m_nOldFormat = GetCurField()->GetFormat() in fldfunc.cxx file and GetFormat() return sal_uInt32. Also, the data type of variable nFormat is changed from to sal_uInt32 as there is a conditional operation with the sal_uInt32 output. This is also the case for other changed files. The variable nFormat is changed to sal_uInt32 in files fldref.cxx and fldvar.cxx. Change-Id: I57ac03e48d4f0eecc96cfdbc19e92e00148f07d6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147881 Tested-by: Hossein <hossein@libreoffice.org> Reviewed-by: Hossein <hossein@libreoffice.org>
Diffstat (limited to 'sw/source/ui/fldui/flddok.hxx')
-rw-r--r--sw/source/ui/fldui/flddok.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/fldui/flddok.hxx b/sw/source/ui/fldui/flddok.hxx
index a43b7547df0e..b532b06f01f6 100644
--- a/sw/source/ui/fldui/flddok.hxx
+++ b/sw/source/ui/fldui/flddok.hxx
@@ -27,7 +27,7 @@
class SwFieldDokPage : public SwFieldPage
{
sal_Int32 m_nOldSel;
- sal_uLong m_nOldFormat;
+ sal_uInt32 m_nOldFormat;
std::unique_ptr<weld::TreeView> m_xTypeLB;
std::unique_ptr<weld::Widget> m_xSelection;