mirror of
https://github.com/glest/glest-source.git
synced 2025-08-11 10:54:01 +02:00
- round 2 of cppcheck code cleanup
This commit is contained in:
@@ -201,8 +201,8 @@ bool IsNumeric(const char *p, bool allowNegative) {
|
||||
class Comma: public numpunct<char>// own facet class
|
||||
{
|
||||
protected:
|
||||
char do_thousands_sep() const { return ','; }// use the comma
|
||||
string do_grouping() const { return "\3"; }//group 3 digits
|
||||
//char do_thousands_sep() const { return ','; }// use the comma
|
||||
//string do_grouping() const { return "\3"; }//group 3 digits
|
||||
};
|
||||
string formatNumber(uint64 f) {
|
||||
|
||||
|
@@ -745,10 +745,10 @@ bool compareNonCaseSensitive(const string a, const string b) {
|
||||
return (toLower(a) < toLower(b));
|
||||
}
|
||||
|
||||
void copyStringToBuffer(char *buffer, int bufferSize, const string& s){
|
||||
strncpy(buffer, s.c_str(), bufferSize-1);
|
||||
buffer[bufferSize-1]= '\0';
|
||||
}
|
||||
//void copyStringToBuffer(char *buffer, int bufferSize, const string& s){
|
||||
// strncpy(buffer, s.c_str(), bufferSize-1);
|
||||
// buffer[bufferSize-1]= '\0';
|
||||
//}
|
||||
|
||||
// ==================== numeric fcs ====================
|
||||
|
||||
|
Reference in New Issue
Block a user