Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 15, 2008, 11:19:54 AM (16 years ago)
Author:
rgrieder
Message:

Replaced macro "Class" with "GetClassIdentifier" to avoid future collision because the macro is very short.
"ID" was already replaced with the introduction of CEGUI which used ID somewhere as non-macro. The compiler error was completely misleading though…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/core/XMLPort.h

    r1755 r1787  
    301301                                if (identifier)
    302302                                {
    303                                     if (identifier->isA(Class(O)))
     303                                    if (identifier->isA(GetClassIdentifier(O)))
    304304                                    {
    305305                                        if (this->identifierIsIncludedInLoaderMask(identifier))
     
    333333                                    else
    334334                                    {
    335                                         COUT(2) << ((BaseObject*)object)->getLoaderIndentation() << "Warning: '" << child->Value() << "' is not a '" << Class(O)->getName() << "'." << std::endl;
     335                                        COUT(2) << ((BaseObject*)object)->getLoaderIndentation() << "Warning: '" << child->Value() << "' is not a '" << GetClassIdentifier(O)->getName() << "'." << std::endl;
    336336                                    }
    337337                                }
     
    346346                    {
    347347                        COUT(1) << std::endl;
    348                         COUT(1) << "An error occurred in XMLPort.h while loading a '" << Class(O)->getName() << "' in '" << this->sectionname_ << "' of '" << this->identifier_->getName() << "' (objectname: " << ((BaseObject*)object)->getName() << ") in " << object->getLevelfile() << ":" << std::endl;
     348                        COUT(1) << "An error occurred in XMLPort.h while loading a '" << GetClassIdentifier(O)->getName() << "' in '" << this->sectionname_ << "' of '" << this->identifier_->getName() << "' (objectname: " << ((BaseObject*)object)->getName() << ") in " << object->getLevelfile() << ":" << std::endl;
    349349                        COUT(1) << ex.what() << std::endl;
    350350                    }
Note: See TracChangeset for help on using the changeset viewer.