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
=== modified file 'include/zorba/audit.h'
--- include/zorba/audit.h 2012-07-24 08:48:48 +0000
+++ include/zorba/audit.h 2012-08-07 16:50:34 +0000
@@ -62,6 +62,8 @@
62 virtual const Property& property() const = 0;62 virtual const Property& property() const = 0;
63 virtual const String& stringValue() const = 0;63 virtual const String& stringValue() const = 0;
64 virtual long long longValue() const = 0;64 virtual long long longValue() const = 0;
65
66 virtual ~Observation();
65 };67 };
6668
67 class ZORBA_DLL_PUBLIC Configuration {69 class ZORBA_DLL_PUBLIC Configuration {
@@ -81,7 +83,7 @@
8183
82 virtual std::ostream& write(std::ostream&) const = 0;84 virtual std::ostream& write(std::ostream&) const = 0;
83 85
84 virtual ~Configuration() {}86 virtual ~Configuration();
85 };87 };
8688
87 class ZORBA_DLL_PUBLIC Record {89 class ZORBA_DLL_PUBLIC Record {
@@ -93,6 +95,8 @@
9395
94 virtual void add(const Property& prop, long long val) = 0;96 virtual void add(const Property& prop, long long val) = 0;
95 virtual void add(const Property& prop, const String& val) = 0;97 virtual void add(const Property& prop, const String& val) = 0;
98
99 virtual ~Record();
96 };100 };
97101
98 class ZORBA_DLL_PUBLIC Event {102 class ZORBA_DLL_PUBLIC Event {
@@ -112,7 +116,7 @@
112116
113 virtual std::ostream& write(std::ostream&) const = 0;117 virtual std::ostream& write(std::ostream&) const = 0;
114 118
115 virtual ~Event() {}119 virtual ~Event();
116 };120 };
117121
118 class ZORBA_DLL_PUBLIC Provider {122 class ZORBA_DLL_PUBLIC Provider {
@@ -122,6 +126,8 @@
122126
123 virtual Event* createEvent(const Configuration*) = 0;127 virtual Event* createEvent(const Configuration*) = 0;
124 virtual void submitEvent(Event*) = 0;128 virtual void submitEvent(Event*) = 0;
129
130 virtual ~Provider();
125 };131 };
126132
127} /* namespace audit */133} /* namespace audit */
128134
=== modified file 'src/api/auditimpl.cpp'
--- src/api/auditimpl.cpp 2012-07-24 08:48:48 +0000
+++ src/api/auditimpl.cpp 2012-08-07 16:50:34 +0000
@@ -116,7 +116,14 @@
116}116}
117117
118//************************************************************************118//************************************************************************
119// ParameterImpl119// Observation
120//************************************************************************
121
122Observation::~Observation() {
123}
124
125//************************************************************************
126// ObservationImpl
120//************************************************************************127//************************************************************************
121128
122ObservationImpl::ObservationImpl(const Property& property, long long value)129ObservationImpl::ObservationImpl(const Property& property, long long value)
@@ -146,6 +153,9 @@
146// Configuration153// Configuration
147//************************************************************************154//************************************************************************
148155
156Configuration::~Configuration() {
157}
158
149void Configuration::getPropertyNames(std::vector<String>& names) {159void Configuration::getPropertyNames(std::vector<String>& names) {
150 size_t len = getPropertyCount();160 size_t len = getPropertyCount();
151 for (size_t i = 0; i < len; ++i) {161 for (size_t i = 0; i < len; ++i) {
@@ -237,6 +247,13 @@
237}247}
238248
239//************************************************************************249//************************************************************************
250// Record
251//************************************************************************
252
253Record::~Record() {
254}
255
256//************************************************************************
240// RecordImpl257// RecordImpl
241//************************************************************************258//************************************************************************
242259
@@ -398,12 +415,22 @@
398// Event415// Event
399//************************************************************************416//************************************************************************
400417
418Event::~Event() {
419}
420
401Event*421Event*
402Event::get() {422Event::get() {
403 return &NOP_EVENT_IMPL;423 return &NOP_EVENT_IMPL;
404}424}
405425
406//************************************************************************426//************************************************************************
427// Provider
428//************************************************************************
429
430Provider::~Provider() {
431}
432
433//************************************************************************
407// ProviderImpl434// ProviderImpl
408//************************************************************************435//************************************************************************
409436

Subscribers

People subscribed via source and target branches