From 22dc22778d64e80f693c396fc310c58da48a62fc Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Tue, 19 Apr 2016 08:48:37 +0200 Subject: [PATCH] Assxml exporter: Make some local functions static. --- code/AssxmlExporter.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/code/AssxmlExporter.cpp b/code/AssxmlExporter.cpp index 8bfab55df..37e67199d 100644 --- a/code/AssxmlExporter.cpp +++ b/code/AssxmlExporter.cpp @@ -178,7 +178,8 @@ static std::string encodeXML(const std::string& data) { // ----------------------------------------------------------------------------------- // Write a text model dump -static void WriteDump(const aiScene* scene, IOStream* io, bool shortened) { +static +void WriteDump(const aiScene* scene, IOStream* io, bool shortened) { time_t tt = ::time( NULL ); tm* p = ::gmtime( &tt ); ai_assert( nullptr != p ); @@ -305,9 +306,10 @@ static void WriteDump(const aiScene* scene, IOStream* io, bool shortened) { unsigned int r = tx->r,g=tx->g,b=tx->b,a=tx->a; ioprintf(io,"\t\t\t%2x %2x %2x %2x",r,g,b,a); - // group by four for readibility - if (0 == (x+y*tex->mWidth) % 4) - ioprintf(io,"\n"); + // group by four for readability + if ( 0 == ( x + y*tex->mWidth ) % 4 ) { + ioprintf( io, "\n" ); + } } } }