indent classes, align by spaces

This commit is contained in:
Garux
2021-03-24 00:25:15 +03:00
parent 5b1b9b5e6c
commit 2222100316
450 changed files with 42485 additions and 42239 deletions

View File

@@ -39,23 +39,23 @@ Image* QERApp_LoadImage( void* environment, const char* name ){
Image* image = 0;
class LoadImageVisitor : public ImageModules::Visitor
{
const char* m_name;
Image*& m_image;
public:
LoadImageVisitor( const char* name, Image*& image )
: m_name( name ), m_image( image ){
}
void visit( const char* name, const _QERPlugImageTable& table ) const {
if ( m_image == 0 ) {
StringOutputStream fullname( 256 );
fullname << m_name << '.' << name;
ArchiveFile* file = GlobalFileSystem().openFile( fullname.c_str() );
if ( file != 0 ) {
m_image = table.loadImage( *file );
file->release();
const char* m_name;
Image*& m_image;
public:
LoadImageVisitor( const char* name, Image*& image )
: m_name( name ), m_image( image ){
}
void visit( const char* name, const _QERPlugImageTable& table ) const {
if ( m_image == 0 ) {
StringOutputStream fullname( 256 );
fullname << m_name << '.' << name;
ArchiveFile* file = GlobalFileSystem().openFile( fullname.c_str() );
if ( file != 0 ) {
m_image = table.loadImage( *file );
file->release();
}
}
}
}
};
Textures_getImageModules().foreachModule( LoadImageVisitor( name, image ) );