[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/kdevelop/3.4
From:       Andreas Pakulat <apaku () gmx ! de>
Date:       2007-01-27 19:25:03
Message-ID: 1169925903.899217.14458.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 627705 by apaku:

#include cctype and change the calls to isalnum and isprint to have std:: namespace. \
This looks better in C++ code than including a C header :) Fixes compilation on gcc \
3.2 and older

CCBUG: 140704


 M  +2 -1      languages/cpp/debugger/variablewidget.cpp  
 M  +2 -1      lib/astyle/astyle.h  


--- branches/kdevelop/3.4/languages/cpp/debugger/variablewidget.cpp #627704:627705
@@ -42,6 +42,7 @@
 
 #include <set>
 #include <typeinfo>
+#include <cctype>
 
 /** The variables widget is passive, and is invoked by the rest of the
     code via two main slots:
@@ -1266,7 +1267,7 @@
             {
                 char c = (char)value;
                 encoded += " '";
-                if (isprint(c))
+                if (std::isprint(c))
                     encoded += c;
                 else {
                     // Try common escape characters.
--- branches/kdevelop/3.4/lib/astyle/astyle.h #627704:627705
@@ -30,6 +30,7 @@
 
 #include <string>
 #include <vector>
+#include <cctype>
 
 using namespace std;
 
@@ -291,7 +292,7 @@
 	private:    // inline functions
 		// check if a specific character can be used in a legal variable/method/class name
 		inline bool isLegalNameCharX(char ch) const {
-			return (isalnum(ch) || ch == '.' || ch == '_' || (!isCStyle && ch == '$') || \
(isCStyle && ch == '~')); +			return (std::isalnum(ch) || ch == '.' || ch == '_' || \
(!isCStyle && ch == '$') || (isCStyle && ch == '~'));  }
 
 		// check if a specific character is a whitespace character


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic