[poincare] add const qualifier

This commit is contained in:
Romain Goyet
2015-09-16 21:26:27 +02:00
parent e5f1bce863
commit 98b3080062
2 changed files with 2 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ typedef uint64_t double_native_uint_t;
class Integer : public Expression {
public:
Integer(native_uint_t i);
static Integer parseInteger(char * string);
static Integer parseInteger(const char * string);
virtual void draw();
virtual Expression ** children();

View File

@@ -103,7 +103,7 @@ Integer::Integer(native_uint_t * digits, uint16_t numberOfDigits) :
m_digits(digits) {
}
Integer Integer::parseInteger(char * string) {
Integer Integer::parseInteger(const char * string) {
int base = 10;
int stringLength = strlen(string);
/*