projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
943edd7
)
Declare a virtual destructor for SignalData
author
Marcus Comstedt
<marcus@mc.pp.se>
Sat, 17 May 2014 10:37:15 +0000
(12:37 +0200)
committer
Marcus Comstedt
<marcus@mc.pp.se>
Tue, 1 Jul 2014 11:28:05 +0000
(13:28 +0200)
This fixes the following error:
error: deleting object of polymorphic class type 'pv::data::Analog'
which has non-virtual destructor might cause undefined behaviour
[-Werror=delete-non-virtual-dtor]
Also, the same error for pv::data::Logic.
pv/data/signaldata.h
patch
|
blob
|
history
diff --git
a/pv/data/signaldata.h
b/pv/data/signaldata.h
index 0aa3b348ff68ad3b3e715435c276c510a891359c..280874c4785d074af42b9a7284ae888c4217b02b 100644
(file)
--- a/
pv/data/signaldata.h
+++ b/
pv/data/signaldata.h
@@
-30,6
+30,7
@@
class SignalData
{
public:
SignalData();
+ virtual ~SignalData() {}
public:
double samplerate() const;