Testcase warning fix using gcc-11
warning: ‘this’ pointer is null [-Wnonnull]
This commit is contained in:
parent
ada739b4a8
commit
842ed6ca9d
1 changed files with 4 additions and 1 deletions
|
|
@ -70,7 +70,10 @@ class ItkVectorContainerUILSNUS2 : public std::vector< ItkLevelSetNodeUS2 > {
|
||||||
|
|
||||||
class ItkVectorContainerUILSNUS2_Pointer {
|
class ItkVectorContainerUILSNUS2_Pointer {
|
||||||
public:
|
public:
|
||||||
ItkVectorContainerUILSNUS2 * operator->() const { return 0; }
|
ItkVectorContainerUILSNUS2 * operator->() const {
|
||||||
|
static ItkVectorContainerUILSNUS2 instance;
|
||||||
|
return &instance;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue