Fixed Linux compile issues

This commit is contained in:
JacobStoren committed 2013-12-05 10:48:57 +01:00
1 parent 19737aa99a
commit 741debebd2
2 files changed
+14 -16

No files matched your search

@@ -26,4 +26,4 @@ class RivColorTableArray
{
public:
static cvf::ref<cvf::Color3fArray> colorTableArray();
};
};
@@ -130,6 +130,18 @@ RimFault* RimFaultCollection::findFaultByName(QString name)
}
//--------------------------------------------------------------------------------------------------
/// A comparing function used to sort Faults in the RimFaultCollection::syncronizeFaults() method
//--------------------------------------------------------------------------------------------------
bool faultComparator(const cvf::ref<RigFault>& a, const cvf::ref<RigFault>& b)
{
CVF_TIGHT_ASSERT(a.notNull() && b.notNull());
int compareValue = a->name().compare(b->name(), Qt::CaseInsensitive);
return (compareValue < 0);
}
//--------------------------------------------------------------------------------------------------
///
@@ -144,21 +156,7 @@ void RimFaultCollection::syncronizeFaults()
cvf::Collection<RigFault> rigFaults(constRigFaults);
// Sort based on name
class FaultComparator
{
public:
bool operator()(const cvf::ref<RigFault>& a, const cvf::ref<RigFault>& b) const
{
CVF_TIGHT_ASSERT(a.notNull() && b.notNull());
int compareValue = a->name().compare(b->name(), Qt::CaseInsensitive);
return (compareValue < 0);
}
} myFaultComparator;
std::sort(rigFaults.begin(), rigFaults.end(), myFaultComparator);
std::sort(rigFaults.begin(), rigFaults.end(), faultComparator);
std::vector<caf::PdmPointer<RimFault> > newFaults;