Skip to content
Snippets Groups Projects
Commit 05712a02 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

ditto

parent 6fc745dd
No related branches found
No related tags found
1 merge request!454Further changes suggested by clang-tidy
......@@ -11,7 +11,7 @@
# As we are not aware of an official way to insert comments in a long string literal,
# we do a dirty little trick: we write comments as if they were no-check specifiers.
#
Checks: '
Checks: '*,
-SectionComment_We_disagree_with_the_following_checks__They_shall_remain_permanently_disabled,
......@@ -77,32 +77,3 @@ Checks: '
-SectionComment_Temporarily_disabled_checks__We_need_to_investigate_them_one_by_one,
+*-avoid-c-arrays,
+*-avoid-goto,
+*-container-size-empty,
+*-isolate-declaration,
+*-member-init,
+*-namespace-comment,
+*-narrowing-conversions,
+performance-move-const-arg,
+performance-no-automatic-move,
+performance-noexcept-move-constructor,
+performance-unnecessary-value-param,
+performance-unnecessary-copy-initialization,
+readability-avoid-const-params-in-decls,
+readability-const-return-type,
+readability-delete-null-pointer,
+readability-else-after-return,
+readability-inconsistent-declaration-parameter-name,
+readability-non-const-parameter,
+readability-redundant-control-flow,
+readability-redundant-declaration,
+readability-redundant-string-cstr,
+readability-uppercase-literal-suffix,
+readability-qualified-auto,
+clang-analyzer-core.NonNullParamChecker,
+llvmlibc-implementation-in-namespace,
+llvmlibc-callee-namespace,
+llvm-qualified-auto,
'
......@@ -14,6 +14,7 @@
#include "GUI/View/Realspace/RealSpaceBuilderUtils.h"
#include "Base/Const/Units.h"
#include "Base/Util/Assert.h"
#include "GUI/Model/Material/MaterialItem.h"
#include "GUI/Model/Material/MaterialModel.h"
#include "GUI/Model/Material/MaterialModelStore.h"
......@@ -321,6 +322,7 @@ Particle3DContainer GUI::RealSpace::BuilderUtils::particleComposition3DContainer
Particle3DContainer particleComposition3DContainer;
for (const IParticle* pc_particle : pc_vector) {
ASSERT(pc_particle);
Particle3DContainer particle3DContainer;
// no abundances are associated with the individual components of ParticleComposition
if (dynamic_cast<const ParticleCoreShell*>(pc_particle)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment