projects
/
blender-staging.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* make BulletSoftBody own small lib to make sure bullet libs don't grow too large...
[blender-staging.git]
/
intern
/
string
/
STR_String.h
diff --git
a/intern/string/STR_String.h
b/intern/string/STR_String.h
index 78bef5f67288479d278fb74e49c41ac2c810d2d9..ec945c80c7c26f4f940fff697a3dcd08b489ce7d 100644
(file)
--- a/
intern/string/STR_String.h
+++ b/
intern/string/STR_String.h
@@
-1,14
+1,11
@@
/**
* $Id$
/**
* $Id$
- * ***** BEGIN GPL
/BL DUAL
LICENSE BLOCK *****
+ * ***** BEGIN GPL LICENSE BLOCK *****
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version. The Blender
- * Foundation also sells licenses for use in proprietary software under
- * the Blender License. See http://www.blender.org/BL/ for information
- * about this.
+ * of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@@
-26,7
+23,7
@@
*
* Contributor(s): none yet.
*
*
* Contributor(s): none yet.
*
- * ***** END GPL
/BL DUAL
LICENSE BLOCK *****
+ * ***** END GPL LICENSE BLOCK *****
*/
/**
*/
/**
@@
-47,6
+44,10
@@
#include <vector>
#include <limits.h>
#include <vector>
#include <limits.h>
+
+#include <cstring>
+#include <cstdlib>
+
using namespace std;
using namespace std;
@@
-141,7
+142,7
@@
public:
inline operator const char *() const { return pData; }
inline char *Ptr() { return pData; }
inline const char *ReadPtr() const { return pData; }
inline operator const char *() const { return pData; }
inline char *Ptr() { return pData; }
inline const char *ReadPtr() const { return pData; }
- inline float ToFloat() const {
return (float) atof(pData)
; }
+ inline float ToFloat() const {
float x=atof(pData); return x
; }
inline int ToInt() const { return atoi(pData); }
// Operators
inline int ToInt() const { return atoi(pData); }
// Operators
@@
-200,3
+201,4
@@
inline STR_String operator+(const char *lhs, rcSTR_String rhs) { return STR_
#endif //_STR_String_H_
#endif //_STR_String_H_
+