From 1751226cbf1cbdc37114de04eac5bcd9bf0c8d09 Mon Sep 17 00:00:00 2001 From: Ryan Norton Date: Mon, 27 Sep 2004 22:46:16 +0000 Subject: [PATCH] revert bad change git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29480 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/latex/wx/function.tex | 2 +- include/wx/utils.h | 2 +- src/mac/carbon/app.cpp | 2 +- src/mac/classic/app.cpp | 2 +- src/msw/window.cpp | 2 +- src/unix/utilsx11.cpp | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/latex/wx/function.tex b/docs/latex/wx/function.tex index 9fb3b8de43..e00e9a84a5 100644 --- a/docs/latex/wx/function.tex +++ b/docs/latex/wx/function.tex @@ -2601,7 +2601,7 @@ this language feature but still take advantage of it when it is available. \membersection{::wxGetKeyState}\label{wxgetkeystate} -\func{bool}{wxGetKeyState}{\param{const wxKeyCode\& }{key}} +\func{bool}{wxGetKeyState}{\param{wxKeyCode }{key}} Returns \true if the key parameter is currently pressed on the keyboard, or with modifier keys, (caps lock, etc) if the key is active (the led light is diff --git a/include/wx/utils.h b/include/wx/utils.h index 14ed37d23f..1cc4f72a8e 100644 --- a/include/wx/utils.h +++ b/include/wx/utils.h @@ -101,7 +101,7 @@ WXDLLIMPEXP_BASE wxString wxGetDataDir(); // Get the state of a key (true if pressed, false if not) // This is generally most useful getting the state of // the modifier or toggle keys. -WXDLLEXPORT bool wxGetKeyState(const wxKeyCode& key); +WXDLLEXPORT bool wxGetKeyState(wxKeyCode key); // Don't synthesize KeyUp events holding down a key and producing diff --git a/src/mac/carbon/app.cpp b/src/mac/carbon/app.cpp index 13f815ae18..082a1c35ed 100644 --- a/src/mac/carbon/app.cpp +++ b/src/mac/carbon/app.cpp @@ -1177,7 +1177,7 @@ int wxMacKeyCodeToModifier(wxKeyCode key) } } -bool wxGetKeyState(const wxKeyCode& key) //virtual key code if < 10.2.x, else see below +bool wxGetKeyState(wxKeyCode key) //virtual key code if < 10.2.x, else see below { #ifdef __DARWIN__ // Startup HID keyboard for getting key codes on DARWIN diff --git a/src/mac/classic/app.cpp b/src/mac/classic/app.cpp index b69f1a295c..610f33f0b4 100644 --- a/src/mac/classic/app.cpp +++ b/src/mac/classic/app.cpp @@ -1851,7 +1851,7 @@ int wxKeyCodeToMacModifier(wxKeyCode key) } } -bool wxGetKeyState(const wxKeyCode& key) //virtual key code if < 10.2.x, else see below +bool wxGetKeyState(wxKeyCode key) //virtual key code if < 10.2.x, else see below { #if __WXMAC_CARBON__ //TODO: Low get map... diff --git a/src/msw/window.cpp b/src/msw/window.cpp index d90ee63d4d..2d23c631f1 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -5123,7 +5123,7 @@ int wxCharCodeWXToMSW(int id, bool *isVirtual) return keySym; } -bool wxGetKeyState(const wxKeyCode& key) +bool wxGetKeyState(wxKeyCode key) { bool bVirtual; int vkey = wxCharCodeWXToMSW(key, &bVirtual); diff --git a/src/unix/utilsx11.cpp b/src/unix/utilsx11.cpp index 9df6307cc3..8d400126c6 100644 --- a/src/unix/utilsx11.cpp +++ b/src/unix/utilsx11.cpp @@ -762,7 +762,7 @@ KeySym wxCharCodeWXToX(int id) #include -bool wxGetKeyState(const wxKeyCode& key) +bool wxGetKeyState(wxKeyCode key) { #if defined(__WXX11__) Display *pDisplay = (Display*) wxApp::GetDisplay(); -- 2.45.2