mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-06 18:26:22 +03:00
0023267: cppcheck warning: Using 'memcpy' on class that contains a virtual method
Removed class _BaseElement, thus _Element's functions are not virtual now. Removed redundant Msg() function from _Element class.
This commit is contained in:
parent
16347bb877
commit
9254e07c59
@ -33,40 +33,10 @@
|
|||||||
#define SHALLOWDUMP
|
#define SHALLOWDUMP
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//============================================================================
|
static class _Element
|
||||||
//==== There are two declaration of classes just for protections =============
|
|
||||||
//============================================================================
|
|
||||||
|
|
||||||
class _BaseElement {
|
|
||||||
public:
|
|
||||||
virtual void M1() =0;
|
|
||||||
virtual void M2() =0;
|
|
||||||
virtual void M3() =0;
|
|
||||||
virtual void M4() =0;
|
|
||||||
virtual void M5() =0;
|
|
||||||
virtual void M6() =0;
|
|
||||||
virtual void M7() =0;
|
|
||||||
virtual void M8() =0;
|
|
||||||
virtual void M9() =0;
|
|
||||||
virtual void M10()=0;
|
|
||||||
};
|
|
||||||
|
|
||||||
static class _Element: public _BaseElement
|
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
_Element() {};
|
_Element() {};
|
||||||
void Msg()
|
|
||||||
{Standard_ProgramError::Raise("Attempt to access to a 'deleted' object");}
|
|
||||||
void M1() {Msg();}
|
|
||||||
void M2() {Msg();}
|
|
||||||
void M3() {Msg();}
|
|
||||||
void M4() {Msg();}
|
|
||||||
void M5() {Msg();}
|
|
||||||
void M6() {Msg();}
|
|
||||||
void M7() {Msg();}
|
|
||||||
void M8() {Msg();}
|
|
||||||
void M9() {Msg();}
|
|
||||||
void M10(){Msg();}
|
|
||||||
|
|
||||||
Standard_Address myNext;
|
Standard_Address myNext;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user