mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix build problem on Linux with missing cvfBase.h
This commit is contained in:
parent
45e909fcfa
commit
9961b39473
@ -20,6 +20,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <cvfBase.h>
|
||||
#include <cvfBoundingBox.h>
|
||||
|
||||
//==================================================================================================
|
||||
|
@ -446,7 +446,7 @@ void RimProject::setProjectFileNameAndUpdateDependencies(const QString& projectF
|
||||
QString oldProjectPath = fileInfoOld.path();
|
||||
|
||||
std::vector<caf::FilePath*> filePaths;
|
||||
fieldsByType(this, filePaths);
|
||||
fieldContentsByType(this, filePaths);
|
||||
|
||||
for (caf::FilePath* filePath : filePaths)
|
||||
{
|
||||
|
@ -166,7 +166,7 @@ protected:
|
||||
|
||||
private:
|
||||
template <typename T>
|
||||
void fieldsByType(caf::PdmObjectHandle* object, std::vector<T*>& typedFields);
|
||||
void fieldContentsByType(caf::PdmObjectHandle* object, std::vector<T*>& typedFields);
|
||||
|
||||
private:
|
||||
caf::PdmField<QString> m_projectFileVersionString;
|
||||
@ -188,7 +188,7 @@ private:
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
template <typename T>
|
||||
void RimProject::fieldsByType(caf::PdmObjectHandle* object, std::vector<T*>& typedFields)
|
||||
void RimProject::fieldContentsByType(caf::PdmObjectHandle* object, std::vector<T*>& typedFields)
|
||||
{
|
||||
if (!object) return;
|
||||
|
||||
@ -216,6 +216,6 @@ void RimProject::fieldsByType(caf::PdmObjectHandle* object, std::vector<T*>& typ
|
||||
|
||||
for (const auto& child : children)
|
||||
{
|
||||
fieldsByType(child, typedFields);
|
||||
fieldContentsByType(child, typedFields);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user