CppTools: Remove function replicating standard library functionality.

Change-Id: I0778aa3d91d8c62fcce7e07e2ceffa1970281ec6
Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com>
This commit is contained in:
Christian Kandeler
2011-10-25 14:06:39 +02:00
parent 1b4cf42c1c
commit 6820f22bbd
3 changed files with 3 additions and 11 deletions

View File

@@ -68,6 +68,8 @@
#include <QtGui/QTextBlock>
#include <QtGui/QTextCursor>
#include <cctype>
using namespace CppEditor;
using namespace CppEditor::Internal;
using namespace CppTools;
@@ -1283,7 +1285,7 @@ public:
// remove trailing L or U and stuff
const char * const spell = numeric->chars();
int numberLength = numeric->size();
while (numberLength > 0 && !isHexadecimal(spell[numberLength - 1]))
while (numberLength > 0 && !std::isxdigit(spell[numberLength - 1]))
--numberLength;
if (numberLength < 1)
return result;