From 0cee79c32c52f1aa298c140ca8bd9d7b9fa9cd07 Mon Sep 17 00:00:00 2001 From: Sebastian Eibl <sebastian.eibl@fau.de> Date: Tue, 25 Sep 2018 09:50:14 +0200 Subject: [PATCH] fixed initial clang7 warnings --- src/field/python/FieldExport.impl.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/field/python/FieldExport.impl.h b/src/field/python/FieldExport.impl.h index a092b4103..c8c2936a2 100644 --- a/src/field/python/FieldExport.impl.h +++ b/src/field/python/FieldExport.impl.h @@ -686,7 +686,8 @@ namespace internal { for( auto i = flags.begin(); i != flags.end(); ++i ) result.append( i->toString() ); - return result; + boost::python::object objectResult = result; + return objectResult; } @@ -699,7 +700,8 @@ namespace internal { for( auto i = flags.begin(); i != flags.end(); ++i ) result[ i->toString() ] = ff.getFlag( *i ); - return result; + boost::python::object objectResult = result; + return objectResult; } template<typename T> -- GitLab