cui/source/inc/cuigaldlg.hxx | 2 +- cui/source/inc/dbregister.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
New commits: commit 013fbfb592f71c1f0a60b6a7ec08aded375515ac Author: Arvind K <khandelwalarvin...@gmail.com> AuthorDate: Sat Mar 4 16:44:50 2023 +0530 Commit: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> CommitDate: Thu Mar 9 11:01:51 2023 +0000 tdf#114441 Convert sal_uLong to better integer types This patch replaces sal_uLong usages in cui directory. changed m_nOldCount in cui/source/inc/dbregister.hxx to size_t. m_nOldCount has been used in dbregister.cxx where it is initially assigned a value 0, later on it has been assigned the value returned by registration.size() which returns type size_t. Line 272 in cuigaldlg.cxx mrTakenList with type TokenList_impl is pushed back with variable nPos of type sal_Int32 hence changed TokenList_impl to store sal_Int32 types. Change-Id: Ie0ba284dc4592cc69a1ded2fe232d18aaec3c92a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148237 Tested-by: Hossein <hoss...@libreoffice.org> Reviewed-by: Hossein <hoss...@libreoffice.org> diff --git a/cui/source/inc/cuigaldlg.hxx b/cui/source/inc/cuigaldlg.hxx index 8e88b84a64e8..6467e0bf1f63 100644 --- a/cui/source/inc/cuigaldlg.hxx +++ b/cui/source/inc/cuigaldlg.hxx @@ -39,7 +39,7 @@ class SearchProgress; class TakeProgress; class TPGalleryThemeProperties; -typedef std::vector< sal_uLong > TokenList_impl; +typedef std::vector< sal_Int32 > TokenList_impl; struct FilterEntry { diff --git a/cui/source/inc/dbregister.hxx b/cui/source/inc/dbregister.hxx index 56c63b4c4307..ecbded949d20 100644 --- a/cui/source/inc/dbregister.hxx +++ b/cui/source/inc/dbregister.hxx @@ -30,7 +30,7 @@ namespace svx class DbRegistrationOptionsPage : public SfxTabPage { private: - sal_uLong m_nOldCount; + size_t m_nOldCount; bool m_bModified; std::unique_ptr<weld::Button> m_xNew;