Browse Source

Move these inline to be faster.

Darryl Pogue 13 years ago
parent
commit
cb209c853f
  1. 6
      Sources/Plasma/NucleusLib/pnKeyedObject/plUoid.cpp
  2. 7
      Sources/Plasma/NucleusLib/pnKeyedObject/plUoid.h
  3. 5
      Sources/Plasma/PubUtilLib/plResMgr/plPageInfo.cpp
  4. 2
      Sources/Plasma/PubUtilLib/plResMgr/plPageInfo.h

6
Sources/Plasma/NucleusLib/pnKeyedObject/plUoid.cpp

@ -76,12 +76,6 @@ plLocation& plLocation::operator=(const plLocation& rhs)
return *this;
}
hsBool plLocation::operator==(const plLocation& u) const
{
// Ignore the itinerant flag when comparing, because
return (fSequenceNumber == u.fSequenceNumber) && ((fFlags & ~kItinerant) == (u.fFlags & ~kItinerant));
}
void plLocation::Set(uint32_t seqNum)
{
fSequenceNumber = seqNum;

7
Sources/Plasma/NucleusLib/pnKeyedObject/plUoid.h

@ -119,7 +119,12 @@ public:
void Read(hsStream* s);
void Write(hsStream* s) const;
hsBool operator==(const plLocation& loc) const;
hsBool operator==(const plLocation& loc) const
{
// Ignore the itinerant flag when comparing, because
return (fSequenceNumber == loc.fSequenceNumber) &&
((fFlags & ~kItinerant) == (loc.fFlags & ~kItinerant));
}
hsBool operator!=(const plLocation& loc) const { return !(loc == *this); }
plLocation& operator=(const plLocation& loc);
bool operator<(const plLocation& loc ) const { return fSequenceNumber < loc.fSequenceNumber; }

5
Sources/Plasma/PubUtilLib/plResMgr/plPageInfo.cpp

@ -120,11 +120,6 @@ void plPageInfo::AddClassVersion(uint16_t classIdx, uint16_t version)
fClassVersions.push_back(cv);
}
const plLocation& plPageInfo::GetLocation() const
{
return fLocation;
}
void plPageInfo::Read( hsStream *s )
{
delete [] fAge;

2
Sources/Plasma/PubUtilLib/plResMgr/plPageInfo.h

@ -90,7 +90,7 @@ public:
void SetStrings( const char *age, const char *page );
void SetLocation(const plLocation& loc);
const plLocation& GetLocation() const;
const plLocation& GetLocation() const { return fLocation; }
uint16_t GetMajorVersion() const { return fMajorVersion; }
void SetMajorVersion(uint16_t major) { fMajorVersion = major; }

Loading…
Cancel
Save