mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
*** empty log message ***
This commit is contained in:
parent
e5e955af8e
commit
ca5d9619bd
@ -72,7 +72,6 @@ using namespace std;
|
||||
exptp template class expcl classname;
|
||||
#else
|
||||
#define EXPORT_TEMPLATE_CLASS(expcl, exptp, classname)
|
||||
#define INLINE inline
|
||||
#endif
|
||||
|
||||
// We define the macro PUBLISHED to mark C++ methods that are to be
|
||||
|
@ -70,8 +70,9 @@ public:
|
||||
_owns_str = false;
|
||||
}
|
||||
string str() {
|
||||
int length = pcount();
|
||||
char *s = strstream::str();
|
||||
string result(s);
|
||||
string result(s, length);
|
||||
if (_owns_str) {
|
||||
delete[] s;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user