summaryrefslogtreecommitdiff
path: root/NxWidgets/libnxwidgets/src/cnxstring.cxx
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-04-13 16:26:44 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-04-13 16:26:44 -0600
commit638c1a6dc07b438efa220c5345e94c3a963505ca (patch)
tree85feed8dbf4f2dd7a2eec83ed88606f14a2f02a2 /NxWidgets/libnxwidgets/src/cnxstring.cxx
parent43ec94a665e13552402ff4f102e0f65f6792cf29 (diff)
downloadnuttx-638c1a6dc07b438efa220c5345e94c3a963505ca.tar.gz
nuttx-638c1a6dc07b438efa220c5345e94c3a963505ca.tar.bz2
nuttx-638c1a6dc07b438efa220c5345e94c3a963505ca.zip
More trailing whilespace removal
Diffstat (limited to 'NxWidgets/libnxwidgets/src/cnxstring.cxx')
-rw-r--r--NxWidgets/libnxwidgets/src/cnxstring.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/NxWidgets/libnxwidgets/src/cnxstring.cxx b/NxWidgets/libnxwidgets/src/cnxstring.cxx
index 3ad3855b9..8548de636 100644
--- a/NxWidgets/libnxwidgets/src/cnxstring.cxx
+++ b/NxWidgets/libnxwidgets/src/cnxstring.cxx
@@ -70,7 +70,7 @@
/****************************************************************************
* Included Files
****************************************************************************/
-
+
#include <nuttx/config.h>
#include <sys/types.h>
@@ -355,7 +355,7 @@ void CNxString::insert(const CNxString &text, int index)
delete[] m_text;
- // Swap pointers
+ // Swap pointers
m_stringLength = newLength;
m_text = newText;
@@ -374,7 +374,7 @@ void CNxString::insert(const CNxString &text, int index)
// Insert the additional text into the new string
dest = &m_text[index];
- src = text.getCharArray();
+ src = text.getCharArray();
for (int i = 0; i < text.getLength(); i++)
{
*dest++ = *src++;
@@ -741,7 +741,7 @@ void CNxString::allocateMemory(int nChars, bool preserve)
// Do we already have enough memory allocated to contain this new size?
// If so, we can avoid deallocating and allocating new memory by re-using the old
-
+
if (nBytesNeeded > m_allocatedSize)
{
// Not enough space in existing memory; allocate new memory