assxml export: make local functions static.
parent
a6e7938696
commit
de39c49c4c
|
@ -66,7 +66,7 @@ namespace Assimp {
|
||||||
namespace AssxmlExport {
|
namespace AssxmlExport {
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------------
|
||||||
int ioprintf( IOStream * io, const char *format, ... ) {
|
static int ioprintf( IOStream * io, const char *format, ... ) {
|
||||||
if ( nullptr == io ) {
|
if ( nullptr == io ) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@ -88,8 +88,7 @@ int ioprintf( IOStream * io, const char *format, ... ) {
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------------
|
||||||
// Convert a name to standard XML format
|
// Convert a name to standard XML format
|
||||||
void ConvertName(aiString& out, const aiString& in)
|
static void ConvertName(aiString& out, const aiString& in) {
|
||||||
{
|
|
||||||
out.length = 0;
|
out.length = 0;
|
||||||
for (unsigned int i = 0; i < in.length; ++i) {
|
for (unsigned int i = 0; i < in.length; ++i) {
|
||||||
switch (in.data[i]) {
|
switch (in.data[i]) {
|
||||||
|
@ -112,8 +111,7 @@ void ConvertName(aiString& out, const aiString& in)
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------------
|
||||||
// Write a single node as text dump
|
// Write a single node as text dump
|
||||||
void WriteNode(const aiNode* node, IOStream * io, unsigned int depth)
|
static void WriteNode(const aiNode* node, IOStream * io, unsigned int depth) {
|
||||||
{
|
|
||||||
char prefix[512];
|
char prefix[512];
|
||||||
for (unsigned int i = 0; i < depth;++i)
|
for (unsigned int i = 0; i < depth;++i)
|
||||||
prefix[i] = '\t';
|
prefix[i] = '\t';
|
||||||
|
@ -178,11 +176,9 @@ static std::string encodeXML(const std::string& data) {
|
||||||
return buffer;
|
return buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------------
|
||||||
// Write a text model dump
|
// Write a text model dump
|
||||||
void WriteDump(const aiScene* scene, IOStream* io, bool shortened) {
|
static void WriteDump(const aiScene* scene, IOStream* io, bool shortened) {
|
||||||
time_t tt = ::time( NULL );
|
time_t tt = ::time( NULL );
|
||||||
tm* p = ::gmtime( &tt );
|
tm* p = ::gmtime( &tt );
|
||||||
ai_assert( nullptr != p );
|
ai_assert( nullptr != p );
|
||||||
|
|
Loading…
Reference in New Issue