mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
CMake : Improve handling of compiler flags (#8486)
#8478 Code cleanup to fix some warnings Several adjustments to improve the specification and usage of compile flags.
This commit is contained in:
@@ -60,7 +60,8 @@ caf::PdmUiFieldEditorHandle* caf::PdmUiFieldEditorHelper::createFieldEditorForFi
|
||||
else
|
||||
{
|
||||
// Find the default field editor
|
||||
QString fieldTypeName = qStringTypeName( *( field->fieldHandle() ) );
|
||||
auto fieldHandle = field->fieldHandle();
|
||||
QString fieldTypeName = qStringTypeName( *fieldHandle );
|
||||
|
||||
if ( fieldTypeName.indexOf( "PdmPtrField" ) != -1 )
|
||||
{
|
||||
|
||||
@@ -129,8 +129,7 @@ public:
|
||||
static std::unique_ptr<Tag> create() { return std::unique_ptr<Tag>( new Tag ); }
|
||||
|
||||
private:
|
||||
Tag( const Tag& rhs ) = default;
|
||||
Tag& operator =( const Tag& rhs ) { return *this; }
|
||||
Tag& operator=( const Tag& rhs ) { return *this; }
|
||||
};
|
||||
|
||||
std::vector<std::unique_ptr<Tag>> tags;
|
||||
|
||||
Reference in New Issue
Block a user