Merge lp:~davidagraf/zorba/virtual_destr_auditing into lp:zorba

Proposed by David Graf
Status: Merged
Approved by: Matthias Brantner
Approved revision: 10977
Merged at revision: 10986
Proposed branch: lp:~davidagraf/zorba/virtual_destr_auditing
Merge into: lp:zorba
Diff against target: 114 lines (+36/-3)
2 files modified
include/zorba/audit.h (+8/-2)
src/api/auditimpl.cpp (+28/-1)
To merge this branch: bzr merge lp:~davidagraf/zorba/virtual_destr_auditing
Reviewer Review Type Date Requested Status
Matthias Brantner Approve
Till Westmann Approve
David Graf (community) Approve
Review via email: mp+118584@code.launchpad.net

Commit message

remove clang warnings in auditing code

Description of the change

remove clang warnings in auditing code

To post a comment you must log in.
Revision history for this message
David Graf (davidagraf) :
review: Approve
Revision history for this message
Till Westmann (tillw) :
review: Approve
Revision history for this message
Matthias Brantner (matthias-brantner) wrote :

The destructors should not be defined inlined.

review: Needs Fixing
10977. By David Graf

moved definitions of auditing destructors into cpp file

Revision history for this message
David Graf (davidagraf) wrote :

Matthias, can you please review it again?

Revision history for this message
Matthias Brantner (matthias-brantner) :
review: Approve
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job virtual_destr_auditing-2012-08-14T14-50-08.762Z is finished. The final status was:

All tests succeeded!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'include/zorba/audit.h'
2--- include/zorba/audit.h 2012-07-24 08:48:48 +0000
3+++ include/zorba/audit.h 2012-08-07 16:50:34 +0000
4@@ -62,6 +62,8 @@
5 virtual const Property& property() const = 0;
6 virtual const String& stringValue() const = 0;
7 virtual long long longValue() const = 0;
8+
9+ virtual ~Observation();
10 };
11
12 class ZORBA_DLL_PUBLIC Configuration {
13@@ -81,7 +83,7 @@
14
15 virtual std::ostream& write(std::ostream&) const = 0;
16
17- virtual ~Configuration() {}
18+ virtual ~Configuration();
19 };
20
21 class ZORBA_DLL_PUBLIC Record {
22@@ -93,6 +95,8 @@
23
24 virtual void add(const Property& prop, long long val) = 0;
25 virtual void add(const Property& prop, const String& val) = 0;
26+
27+ virtual ~Record();
28 };
29
30 class ZORBA_DLL_PUBLIC Event {
31@@ -112,7 +116,7 @@
32
33 virtual std::ostream& write(std::ostream&) const = 0;
34
35- virtual ~Event() {}
36+ virtual ~Event();
37 };
38
39 class ZORBA_DLL_PUBLIC Provider {
40@@ -122,6 +126,8 @@
41
42 virtual Event* createEvent(const Configuration*) = 0;
43 virtual void submitEvent(Event*) = 0;
44+
45+ virtual ~Provider();
46 };
47
48 } /* namespace audit */
49
50=== modified file 'src/api/auditimpl.cpp'
51--- src/api/auditimpl.cpp 2012-07-24 08:48:48 +0000
52+++ src/api/auditimpl.cpp 2012-08-07 16:50:34 +0000
53@@ -116,7 +116,14 @@
54 }
55
56 //************************************************************************
57-// ParameterImpl
58+// Observation
59+//************************************************************************
60+
61+Observation::~Observation() {
62+}
63+
64+//************************************************************************
65+// ObservationImpl
66 //************************************************************************
67
68 ObservationImpl::ObservationImpl(const Property& property, long long value)
69@@ -146,6 +153,9 @@
70 // Configuration
71 //************************************************************************
72
73+Configuration::~Configuration() {
74+}
75+
76 void Configuration::getPropertyNames(std::vector<String>& names) {
77 size_t len = getPropertyCount();
78 for (size_t i = 0; i < len; ++i) {
79@@ -237,6 +247,13 @@
80 }
81
82 //************************************************************************
83+// Record
84+//************************************************************************
85+
86+Record::~Record() {
87+}
88+
89+//************************************************************************
90 // RecordImpl
91 //************************************************************************
92
93@@ -398,12 +415,22 @@
94 // Event
95 //************************************************************************
96
97+Event::~Event() {
98+}
99+
100 Event*
101 Event::get() {
102 return &NOP_EVENT_IMPL;
103 }
104
105 //************************************************************************
106+// Provider
107+//************************************************************************
108+
109+Provider::~Provider() {
110+}
111+
112+//************************************************************************
113 // ProviderImpl
114 //************************************************************************
115

Subscribers

People subscribed via source and target branches