diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-06-02 07:57:07 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-06-02 15:41:07 -0300 |
commit | 7bc6f1512b1febc026d81917f33b1ea90d23fe24 (patch) | |
tree | c0328569c80bcd54022fbe3951802739deb580b0 /tests/libsample | |
parent | 47d4a1f545eb7f348e46d39230a73a1b465e57a4 (diff) |
Fixes code generation for classes with private destructors.
This fix is specific for the cases when the "protected hack" is
turned off.
Also added some tests.
Diffstat (limited to 'tests/libsample')
-rw-r--r-- | tests/libsample/privatedtor.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/libsample/privatedtor.h b/tests/libsample/privatedtor.h index 2c206b263..73f7f4d84 100644 --- a/tests/libsample/privatedtor.h +++ b/tests/libsample/privatedtor.h @@ -52,6 +52,9 @@ public: return m_instanciations; } +protected: + int protectedInstanceCalls() { return m_instanciations; } + private: int m_instanciations; |