assxml export: make local functions static.

pull/859/head
Kim Kulling 2016-04-17 23:29:46 +02:00
parent a6e7938696
commit de39c49c4c
1 changed files with 17 additions and 21 deletions

View File

@ -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 );