From 5411f769e8556989fc344baea756e7661a710d2a Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Wed, 10 May 2017 18:50:51 +0200 Subject: [PATCH] STEPFile: fix coverity findings. --- code/STEPFile.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/code/STEPFile.h b/code/STEPFile.h index e98d9cb31..529d4edbd 100644 --- a/code/STEPFile.h +++ b/code/STEPFile.h @@ -439,13 +439,17 @@ namespace STEP { // ------------------------------------------------------------------------------ /** Base class for all concrete object instances */ // ------------------------------------------------------------------------------ - class Object - { + class Object { public: - - virtual ~Object() {} Object(const char* classname = "unknown") - : classname(classname) {} + : id( 0 ) + , classname(classname) { + // empty + } + + virtual ~Object() { + // empty + } public: @@ -460,7 +464,6 @@ namespace STEP { return dynamic_cast(*this); } - template const T* ToPtr() const { return dynamic_cast(this); @@ -472,7 +475,6 @@ namespace STEP { } public: - uint64_t GetID() const { return id; } @@ -490,7 +492,6 @@ namespace STEP { const char* const classname; }; - template size_t GenericFill(const STEP::DB& db, const EXPRESS::LIST& params, T* in); // (intentionally undefined)