int to MyStr

This commit is contained in:
Joachim Schöberl 2018-03-15 19:19:48 +01:00
parent edf7861ee3
commit b151c9d7da
2 changed files with 8 additions and 7 deletions

View File

@ -113,7 +113,7 @@ MyStr::MyStr(int i)
str = shortstr;
strcpy(str, buffer);
}
/*
MyStr::MyStr(unsigned int i)
{
char buffer[32];
@ -125,7 +125,7 @@ MyStr::MyStr(unsigned int i)
str = shortstr;
strcpy(str, buffer);
}
*/
MyStr::MyStr(void * p)
{
char buffer[32];
@ -138,7 +138,7 @@ MyStr::MyStr(void * p)
strcpy(str, buffer);
}
/*
MyStr::MyStr(long l)
{
char buffer[32];
@ -150,8 +150,9 @@ MyStr::MyStr(long l)
str = shortstr;
strcpy(str, buffer);
}
*/
MyStr::MyStr(unsigned long l)
MyStr::MyStr(size_t l)
{
char buffer[32];
sprintf(buffer, "%ld", l);

View File

@ -50,10 +50,10 @@ public:
MyStr(char);
MyStr(const MyStr &);
MyStr(int);
MyStr(unsigned);
MyStr(size_t);
MyStr(void *);
MyStr(long);
MyStr(unsigned long);
// MyStr(long);
// MyStr(unsigned long);
MyStr(double);
MyStr(const Point3d& p);
MyStr(const Vec3d& p);