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:
Magne Sjaastad
2022-01-26 10:08:28 +01:00
committed by GitHub
parent d5b17976ed
commit 2d2bf0bbc7
24 changed files with 190 additions and 64 deletions

View File

@@ -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 )
{

View File

@@ -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;