mirror of https://github.com/swig/swig
Testcase warning fix using gcc-11
warning: ‘this’ pointer is null [-Wnonnull]
This commit is contained in:
parent
ada739b4a8
commit
842ed6ca9d
|
@ -70,7 +70,10 @@ class ItkVectorContainerUILSNUS2 : public std::vector< ItkLevelSetNodeUS2 > {
|
|||
|
||||
class ItkVectorContainerUILSNUS2_Pointer {
|
||||
public:
|
||||
ItkVectorContainerUILSNUS2 * operator->() const { return 0; }
|
||||
ItkVectorContainerUILSNUS2 * operator->() const {
|
||||
static ItkVectorContainerUILSNUS2 instance;
|
||||
return &instance;
|
||||
}
|
||||
};
|
||||
|
||||
%}
|
||||
|
|
Loading…
Reference in New Issue