|
26 | 26 |
|
27 | 27 | #define DECLARE_LOG4CXX_CLAZZ_OBJECT(object)\ |
28 | 28 | public:\ |
29 | | - class Clazz##object : public helpers::Class\ |
| 29 | + class Clazz##object : public LOG4CXX_NS::helpers::Class\ |
30 | 30 | {\ |
31 | 31 | public:\ |
32 | | - Clazz##object() : helpers::Class() {}\ |
33 | | - virtual ~Clazz##object() {}\ |
34 | | - virtual LOG4CXX_NS::LogString getName() const { return LOG4CXX_STR(#object); } \ |
| 32 | + LogString getName() const override { return LOG4CXX_STR(#object); }\ |
35 | 33 | };\ |
36 | | - static const helpers::Class& getStaticClass(); \ |
37 | | - static const LOG4CXX_NS::helpers::ClassRegistration& registerClass(); |
| 34 | + static const helpers::Class& getStaticClass();\ |
| 35 | + static const helpers::ClassRegistration& registerClass(); |
38 | 36 |
|
39 | 37 | #define DECLARE_ABSTRACT_LOG4CXX_OBJECT(object)\ |
40 | 38 | DECLARE_LOG4CXX_CLAZZ_OBJECT(object)\ |
41 | 39 | const helpers::Class& getClass() const override; |
42 | 40 |
|
43 | 41 | #define DECLARE_LOG4CXX_OBJECT(object)\ |
44 | 42 | public:\ |
45 | | - class Clazz##object : public helpers::Class\ |
| 43 | + class Clazz##object : public LOG4CXX_NS::helpers::Class\ |
46 | 44 | {\ |
47 | 45 | public:\ |
48 | | - Clazz##object() : helpers::Class() {}\ |
49 | | - virtual ~Clazz##object() {}\ |
50 | | - virtual LOG4CXX_NS::LogString getName() const { return LOG4CXX_STR(#object); } \ |
51 | | - virtual object* newInstance() const\ |
| 46 | + LogString getName() const override { return LOG4CXX_STR(#object); }\ |
| 47 | + object* newInstance() const override\ |
52 | 48 | {\ |
53 | 49 | return new object();\ |
54 | 50 | }\ |
55 | 51 | };\ |
56 | 52 | const helpers::Class& getClass() const override;\ |
57 | 53 | static const helpers::Class& getStaticClass(); \ |
58 | | - static const LOG4CXX_NS::helpers::ClassRegistration& registerClass(); |
| 54 | + static const helpers::ClassRegistration& registerClass(); |
59 | 55 |
|
60 | 56 | #define DECLARE_LOG4CXX_OBJECT_WITH_CUSTOM_CLASS(object, class)\ |
61 | 57 | public:\ |
62 | 58 | const helpers::Class& getClass() const override;\ |
63 | 59 | static const helpers::Class& getStaticClass();\ |
64 | | - static const LOG4CXX_NS::helpers::ClassRegistration& registerClass(); |
| 60 | + static const helpers::ClassRegistration& registerClass(); |
65 | 61 |
|
66 | 62 | #define IMPLEMENT_LOG4CXX_OBJECT(object)\ |
67 | 63 | const ::LOG4CXX_NS::helpers::Class& object::getClass() const { return getStaticClass(); }\ |
|
74 | 70 | return classReg; \ |
75 | 71 | }\ |
76 | 72 | namespace LOG4CXX_NS { namespace classes { \ |
77 | | - const ::LOG4CXX_NS::helpers::ClassRegistration& object##Registration = object::registerClass(); \ |
| 73 | + const helpers::ClassRegistration& object##Registration = object::registerClass(); \ |
78 | 74 | } } |
79 | 75 |
|
80 | 76 |
|
|
89 | 85 | return classReg; \ |
90 | 86 | }\ |
91 | 87 | namespace LOG4CXX_NS { namespace classes { \ |
92 | | - const LOG4CXX_NS::helpers::ClassRegistration& object##Registration = object::registerClass(); \ |
| 88 | + const helpers::ClassRegistration& object##Registration = object::registerClass(); \ |
93 | 89 | } } |
94 | 90 |
|
95 | 91 | namespace LOG4CXX_NS |
|
0 commit comments