summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-02-25 17:24:04 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-02-25 17:24:04 +0100
commitea4fdc135e879ea6087f3f4a0a6ce0f04b1d1d7d (patch)
tree6c0d2b31de8249277e6affcc342274903ad714ed
parent4520435ad59802b6a567b3bb6c77927663be0f81 (diff)
Propagate sal_uInt16/size_t mismatch out of MenuItemList::SearchItem
Change-Id: I31ae81876c541979600ecd25ab7a6e3a0e3b0d0b
-rw-r--r--vcl/source/window/menubarwindow.cxx2
-rw-r--r--vcl/source/window/menufloatingwindow.cxx4
-rw-r--r--vcl/source/window/menuitemlist.cxx6
-rw-r--r--vcl/source/window/menuitemlist.hxx6
4 files changed, 9 insertions, 9 deletions
diff --git a/vcl/source/window/menubarwindow.cxx b/vcl/source/window/menubarwindow.cxx
index a2ad3a96172f..dfca7141cb24 100644
--- a/vcl/source/window/menubarwindow.cxx
+++ b/vcl/source/window/menubarwindow.cxx
@@ -825,7 +825,7 @@ bool MenuBarWindow::HandleKeyEvent( const KeyEvent& rKEvent, bool bFromMenu )
sal_Unicode nCharCode = rKEvent.GetCharCode();
if ( nCharCode )
{
- sal_uInt16 nEntry, nDuplicates;
+ size_t nEntry, nDuplicates;
MenuItemData* pData = pMenu->GetItemList()->SearchItem( nCharCode, rKEvent.GetKeyCode(), nEntry, nDuplicates, nHighlightedItem );
if ( pData && (nEntry != ITEMPOS_INVALID) )
{
diff --git a/vcl/source/window/menufloatingwindow.cxx b/vcl/source/window/menufloatingwindow.cxx
index 4acbb06f1756..32de3fdd705c 100644
--- a/vcl/source/window/menufloatingwindow.cxx
+++ b/vcl/source/window/menufloatingwindow.cxx
@@ -1124,8 +1124,8 @@ void MenuFloatingWindow::KeyInput( const KeyEvent& rKEvent )
default:
{
sal_Unicode nCharCode = rKEvent.GetCharCode();
- sal_uInt16 nPos = 0;
- sal_uInt16 nDuplicates = 0;
+ size_t nPos = 0;
+ size_t nDuplicates = 0;
MenuItemData* pData = (nCharCode && pMenu && accel) ?
pMenu->GetItemList()->SearchItem(nCharCode, rKEvent.GetKeyCode(), nPos, nDuplicates, nHighlightedItem) : nullptr;
if (pData)
diff --git a/vcl/source/window/menuitemlist.cxx b/vcl/source/window/menuitemlist.cxx
index 44757a4778ba..7316ed98355f 100644
--- a/vcl/source/window/menuitemlist.cxx
+++ b/vcl/source/window/menuitemlist.cxx
@@ -151,9 +151,9 @@ MenuItemData* MenuItemList::GetData( sal_uInt16 nSVId, size_t& rPos ) const
MenuItemData* MenuItemList::SearchItem(
sal_Unicode cSelectChar,
KeyCode aKeyCode,
- sal_uInt16& rPos,
- sal_uInt16& nDuplicates,
- sal_uInt16 nCurrentPos
+ size_t& rPos,
+ size_t& nDuplicates,
+ size_t nCurrentPos
) const
{
const vcl::I18nHelper& rI18nHelper = Application::GetSettings().GetUILocaleI18nHelper();
diff --git a/vcl/source/window/menuitemlist.hxx b/vcl/source/window/menuitemlist.hxx
index 89befc106e28..b06a61446de4 100644
--- a/vcl/source/window/menuitemlist.hxx
+++ b/vcl/source/window/menuitemlist.hxx
@@ -131,9 +131,9 @@ public:
MenuItemData* SearchItem(
sal_Unicode cSelectChar,
vcl::KeyCode aKeyCode,
- sal_uInt16& rPos,
- sal_uInt16& nDuplicates,
- sal_uInt16 nCurrentPos
+ size_t& rPos,
+ size_t& nDuplicates,
+ size_t nCurrentPos
) const;
size_t GetItemCount( sal_Unicode cSelectChar ) const;
size_t GetItemCount( vcl::KeyCode aKeyCode ) const;