diff options
author | Muhammet Kara <muhammet.kara@collabora.com> | 2020-02-01 14:20:44 +0300 |
---|---|---|
committer | Muhammet Kara <muhammet.kara@collabora.com> | 2020-02-01 14:13:49 +0100 |
commit | 08edc74a6b6ccf0d4d1560f57ec99a1ad9b390ce (patch) | |
tree | 29a5f7f1b80cb763a888834f72a3f0cc3901c46b | |
parent | ce9924bf47dc99aa207caeea6155f464319515d3 (diff) |
sal_uLong to size_t for sizeof related types
Change-Id: I00055ffd7b79d2e5637b69390ca516f11b0cffd9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87801
Tested-by: Jenkins
Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
-rw-r--r-- | cui/source/customize/acccfg.cxx | 4 | ||||
-rw-r--r-- | include/vcl/svapp.hxx | 4 | ||||
-rw-r--r-- | vcl/source/app/svapp.cxx | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/cui/source/customize/acccfg.cxx b/cui/source/customize/acccfg.cxx index cb1ed554d501..ca602f8e96be 100644 --- a/cui/source/customize/acccfg.cxx +++ b/cui/source/customize/acccfg.cxx @@ -1032,8 +1032,8 @@ void SfxAcceleratorConfigPage::Init(const uno::Reference<ui::XAcceleratorConfigu } // Map the VCL hardcoded key codes and mark them as not changeable - sal_uLong c3 = Application::GetReservedKeyCodeCount(); - sal_uLong i3 = 0; + size_t c3 = Application::GetReservedKeyCodeCount(); + size_t i3 = 0; for (i3 = 0; i3 < c3; ++i3) { const vcl::KeyCode* pKeyCode = Application::GetReservedKeyCode(i3); diff --git a/include/vcl/svapp.hxx b/include/vcl/svapp.hxx index 61a7443c5cec..0fa4b08d7600 100644 --- a/include/vcl/svapp.hxx +++ b/include/vcl/svapp.hxx @@ -1038,7 +1038,7 @@ public: @see GetReservedKeyCode */ - static sal_uLong GetReservedKeyCodeCount(); + static size_t GetReservedKeyCodeCount(); /** Get the reserved key code. @@ -1048,7 +1048,7 @@ public: @see GetReservedKeyCodeCount */ - static const vcl::KeyCode* GetReservedKeyCode( sal_uLong i ); + static const vcl::KeyCode* GetReservedKeyCode( size_t i ); ///@} diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx index a5aefbbf2f2f..14674da4ff3b 100644 --- a/vcl/source/app/svapp.cxx +++ b/vcl/source/app/svapp.cxx @@ -274,12 +274,12 @@ void Application::Abort( const OUString& rErrorText ) SalAbort( rErrorText, dumpCore ); } -sal_uLong Application::GetReservedKeyCodeCount() +size_t Application::GetReservedKeyCodeCount() { return SAL_N_ELEMENTS(ReservedKeys); } -const vcl::KeyCode* Application::GetReservedKeyCode( sal_uLong i ) +const vcl::KeyCode* Application::GetReservedKeyCode( size_t i ) { if( i >= GetReservedKeyCodeCount() ) return nullptr; |