aboutsummaryrefslogtreecommitdiff
path: root/guilib/Key.cpp
diff options
context:
space:
mode:
authorjmarshallnz <jmarshallnz@svn>2009-09-25 02:32:31 +0000
committerjmarshallnz <jmarshallnz@svn>2009-09-25 02:32:31 +0000
commit46fa5a3a469aabf6dddd443a036c288111a322bc (patch)
treedc27f1cf4ed35c4497911a6e78e65d86a8453398 /guilib/Key.cpp
parentdc4da13112776bf65275dbe7f1ded46710bd7774 (diff)
fixed: We're using the result of CKey::GetUnicode() as wchar_t, so may as well return that.
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@23152 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib/Key.cpp')
-rw-r--r--guilib/Key.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/guilib/Key.cpp b/guilib/Key.cpp
index 7d19a2a47d..c820c1c889 100644
--- a/guilib/Key.cpp
+++ b/guilib/Key.cpp
@@ -63,10 +63,10 @@ uint32_t CKey::GetButtonCode() const // for backwards compatibility only
return m_buttonCode;
}
-uint32_t CKey::GetUnicode() const
+wchar_t CKey::GetUnicode() const
{
if (m_buttonCode>=KEY_ASCII && m_buttonCode < KEY_UNICODE) // will need to change when Unicode is fully implemented
- return m_buttonCode-KEY_ASCII;
+ return (wchar_t)(m_buttonCode - KEY_ASCII);
else
return 0;
}