You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/04/21 22:42:05 UTC

[incubator-nuttx-apps] 03/04: examples: nxwidget: nxstyle fixes

This is an automated email from the ASF dual-hosted git repository.

gnutt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git

commit 1697c64994ccdc0bbef7ae077027a10643bb14e2
Author: Alin Jerpelea <al...@sony.com>
AuthorDate: Tue Apr 21 17:32:44 2020 +0200

    examples: nxwidget: nxstyle fixes
    
    nxstyle fixes for nxwidget exaples
    
    Signed-off-by: Alin Jerpelea <al...@sony.com>
---
 graphics/nxwidgets/src/cwidgetcontrol.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/graphics/nxwidgets/src/cwidgetcontrol.cxx b/graphics/nxwidgets/src/cwidgetcontrol.cxx
index a6b35fe..c4057c4 100644
--- a/graphics/nxwidgets/src/cwidgetcontrol.cxx
+++ b/graphics/nxwidgets/src/cwidgetcontrol.cxx
@@ -590,7 +590,7 @@ void CWidgetControl::newMouseEvent(FAR const struct nxgl_point_s *pos, uint8_t b
 #ifdef CONFIG_NX_KBD
 void CWidgetControl::newKeyboardEvent(uint8_t nCh, FAR const uint8_t *pStr)
 {
-  FAR uint8_t *pBuffer = &m_kbdbuf[m_nCh];
+  FAR uint8_t *buffer = &m_kbdbuf[m_nCh];
 
   // Append each new character to keyboard character buffer
 
@@ -598,7 +598,7 @@ void CWidgetControl::newKeyboardEvent(uint8_t nCh, FAR const uint8_t *pStr)
        i < nCh && m_nCh < CONFIG_NXWIDGETS_KBDBUFFER_SIZE;
        i++, m_nCh++)
     {
-      *pBuffer++ = *pStr++;
+      *buffer++ = *pStr++;
     }
 
   // Notify any external logic that a keyboard event has occurred