remove gcc warnings, thanks to Stephan Beal
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@658 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
a708a57d94
commit
d07f863578
3 changed files with 10 additions and 0 deletions
|
@ -22,6 +22,7 @@
|
||||||
struct Base
|
struct Base
|
||||||
{
|
{
|
||||||
virtual void foo() = 0;
|
virtual void foo() = 0;
|
||||||
|
virtual ~Base();
|
||||||
};
|
};
|
||||||
|
|
||||||
bool registerClass(std::string, Base*(*)() );
|
bool registerClass(std::string, Base*(*)() );
|
||||||
|
|
|
@ -15,9 +15,16 @@
|
||||||
#include "foo.h"
|
#include "foo.h"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
Base::~Base(){}
|
||||||
|
|
||||||
Foo::Foo(){}
|
Foo::Foo(){}
|
||||||
Boo::Boo(){}
|
Boo::Boo(){}
|
||||||
|
|
||||||
|
|
||||||
|
Foo::~Foo(){}
|
||||||
|
Boo::~Boo(){}
|
||||||
|
|
||||||
|
|
||||||
void Foo::foo(){std::cout << "Foo::foo() called, this: " << this << "\n"; }
|
void Foo::foo(){std::cout << "Foo::foo() called, this: " << this << "\n"; }
|
||||||
void Boo::foo(){std::cout << "Boo::foo() called, this: " << this << "\n"; }
|
void Boo::foo(){std::cout << "Boo::foo() called, this: " << this << "\n"; }
|
||||||
|
|
||||||
|
|
|
@ -20,12 +20,14 @@
|
||||||
struct Foo : Base
|
struct Foo : Base
|
||||||
{
|
{
|
||||||
Foo();
|
Foo();
|
||||||
|
virtual ~Foo();
|
||||||
void foo();
|
void foo();
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Boo : Base
|
struct Boo : Base
|
||||||
{
|
{
|
||||||
Boo();
|
Boo();
|
||||||
|
virtual ~Boo();
|
||||||
void foo();
|
void foo();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue