Skip to content

Commit

Permalink
Initialize m_requiresFF in full ctor.
Browse files Browse the repository at this point in the history
  • Loading branch information
osschar committed Dec 30, 2014
1 parent f912298 commit 7a2deb7
Showing 1 changed file with 17 additions and 23 deletions.
40 changes: 17 additions & 23 deletions Fireworks/Core/interface/FWRepresentationInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,46 +25,40 @@

// forward declarations

class FWRepresentationInfo {

class FWRepresentationInfo
{
public:
FWRepresentationInfo(const std::string& iPurpose, unsigned int iProximity, unsigned int iBitPackedViews, bool iRepresentsSubPart, bool iRequiresFF) :
m_purpose(iPurpose),
m_proximity(iProximity),
m_bitPackedViews(iBitPackedViews),
m_representsSubPart(iRepresentsSubPart)
{
}
m_representsSubPart(iRepresentsSubPart),
m_requiresFF(iRequiresFF)
{}

FWRepresentationInfo() :
m_purpose(),
m_proximity(0xFFFFFFFF),
m_bitPackedViews(0),
m_representsSubPart(false),
m_requiresFF(false){
}
//virtual ~FWRepresentationInfo();
m_requiresFF(false)
{}

// ---------- const member functions ---------------------
const std::string& purpose() const {
return m_purpose;
}

const std::string& purpose() const { return m_purpose; }

///measures how 'close' this representation is to the type in question, the large the number the farther away
unsigned int proximity() const {
return m_proximity;
}
bool isValid() const {
return !m_purpose.empty();
}
unsigned int proximity() const { return m_proximity; }

bool isValid() const { return !m_purpose.empty(); }

bool representsSubPart() const {
return m_representsSubPart;
}
bool representsSubPart() const { return m_representsSubPart; }

bool requiresFF() const { return m_requiresFF; }

unsigned int bitPackedViews() const {
return m_bitPackedViews;
}
unsigned int bitPackedViews() const { return m_bitPackedViews; }

// ---------- static member functions --------------------

// ---------- member functions ---------------------------
Expand Down

0 comments on commit 7a2deb7

Please sign in to comment.