Author: toshok
Date: 2007-09-26 14:26:58 -0400 (Wed, 26 Sep 2007)
New Revision: 86426

Modified:
   trunk/moon/src/animation.h
   trunk/moon/src/brush.h
   trunk/moon/src/clock.h
   trunk/moon/src/control.h
   trunk/moon/src/geometry.h
   trunk/moon/src/media.h
   trunk/moon/src/shape.h
   trunk/moon/src/stylus.h
   trunk/moon/src/text.h
   trunk/moon/src/transform.h
   trunk/moon/src/uielement.h
Log:
make all these dtors virtual

Modified: trunk/moon/src/animation.h
===================================================================
--- trunk/moon/src/animation.h  2007-09-26 18:19:58 UTC (rev 86425)
+++ trunk/moon/src/animation.h  2007-09-26 18:26:58 UTC (rev 86426)
@@ -139,7 +139,7 @@
 class AnimationClock : public Clock {
  public:
        AnimationClock (Animation/*Timeline*/ *timeline);
-       ~AnimationClock ();
+       virtual ~AnimationClock ();
        virtual Type::Kind GetObjectType () { return Type::ANIMATIONCLOCK; };
 
        Value *GetCurrentValue (Value *defaultOriginValue, Value 
*defaultDestinationValue);
@@ -272,7 +272,7 @@
  public:
 
        KeyFrameCollection ();
-       ~KeyFrameCollection ();
+       virtual ~KeyFrameCollection ();
 
        virtual Type::Kind GetObjectType() { return Type::KEYFRAME_COLLECTION; }
        virtual Type::Kind GetElementType() { return Type::KEYFRAME; }
@@ -294,7 +294,7 @@
 class ColorKeyFrameCollection : public KeyFrameCollection {
  public:
        ColorKeyFrameCollection () { }
-       ~ColorKeyFrameCollection () { }
+       virtual ~ColorKeyFrameCollection () { }
 
        virtual Type::Kind GetObjectType() { return 
Type::COLORKEYFRAME_COLLECTION; }
        virtual Type::Kind GetElementType() { return Type::COLORKEYFRAME; }
@@ -303,7 +303,7 @@
 class DoubleKeyFrameCollection : public KeyFrameCollection {
  public:
        DoubleKeyFrameCollection () { }
-       ~DoubleKeyFrameCollection () { }
+       virtual ~DoubleKeyFrameCollection () { }
 
        virtual Type::Kind GetObjectType() { return 
Type::DOUBLEKEYFRAME_COLLECTION; }
        virtual Type::Kind GetElementType() { return Type::DOUBLEKEYFRAME; }
@@ -312,7 +312,7 @@
 class PointKeyFrameCollection : public KeyFrameCollection {
  public:
        PointKeyFrameCollection () { }
-       ~PointKeyFrameCollection () { }
+       virtual ~PointKeyFrameCollection () { }
 
        virtual Type::Kind GetObjectType() { return 
Type::POINTKEYFRAME_COLLECTION; }
        virtual Type::Kind GetElementType() { return Type::POINTKEYFRAME; }
@@ -454,7 +454,7 @@
 class DoubleAnimationUsingKeyFrames : public DoubleAnimation {
  public:
        DoubleAnimationUsingKeyFrames ();
-       ~DoubleAnimationUsingKeyFrames ();
+       virtual ~DoubleAnimationUsingKeyFrames ();
        virtual Type::Kind GetObjectType () { return 
Type::DOUBLEANIMATIONUSINGKEYFRAMES; };
 
        void AddKeyFrame (DoubleKeyFrame *frame);
@@ -477,7 +477,7 @@
 class ColorAnimationUsingKeyFrames : public ColorAnimation {
  public:
        ColorAnimationUsingKeyFrames ();
-       ~ColorAnimationUsingKeyFrames();
+       virtual ~ColorAnimationUsingKeyFrames();
        virtual Type::Kind GetObjectType () { return 
Type::COLORANIMATIONUSINGKEYFRAMES; };
 
        void AddKeyFrame (ColorKeyFrame *frame);
@@ -498,7 +498,7 @@
 class PointAnimationUsingKeyFrames : public PointAnimation {
  public:
        PointAnimationUsingKeyFrames ();
-       ~PointAnimationUsingKeyFrames();
+       virtual ~PointAnimationUsingKeyFrames();
        virtual Type::Kind GetObjectType () { return 
Type::POINTANIMATIONUSINGKEYFRAMES; };
 
        void AddKeyFrame (PointKeyFrame *frame);
@@ -526,7 +526,7 @@
        void Resume ();
        void Seek (TimeSpan timespan);
        void Stop ();
-       ~Storyboard ();
+       virtual ~Storyboard ();
 
        static DependencyProperty* TargetNameProperty;
        static DependencyProperty* TargetPropertyProperty;
@@ -553,7 +553,7 @@
 class BeginStoryboard : public TriggerAction {
  public:
        BeginStoryboard () { }
-       ~BeginStoryboard ();
+       virtual ~BeginStoryboard ();
        
        virtual Type::Kind GetObjectType () { return Type::BEGINSTORYBOARD; };
 

Modified: trunk/moon/src/brush.h
===================================================================
--- trunk/moon/src/brush.h      2007-09-26 18:19:58 UTC (rev 86425)
+++ trunk/moon/src/brush.h      2007-09-26 18:26:58 UTC (rev 86426)
@@ -144,7 +144,7 @@
        static DependencyProperty *ImageSourceProperty;
 
        ImageBrush ();
-       ~ImageBrush ();
+       virtual ~ImageBrush ();
        
        virtual Type::Kind GetObjectType () { return Type::IMAGEBRUSH; }
 
@@ -166,7 +166,7 @@
        static DependencyProperty *SourceNameProperty;
        
        VideoBrush ();
-       ~VideoBrush ();
+       virtual ~VideoBrush ();
        
        virtual Type::Kind GetObjectType () { return Type::VIDEOBRUSH; }
        

Modified: trunk/moon/src/clock.h
===================================================================
--- trunk/moon/src/clock.h      2007-09-26 18:19:58 UTC (rev 86425)
+++ trunk/moon/src/clock.h      2007-09-26 18:26:58 UTC (rev 86426)
@@ -252,7 +252,7 @@
 class Clock : public DependencyObject {
  public:
        Clock (Timeline *timeline);
-       ~Clock () {  }
+       virtual ~Clock () {  }
        
        virtual Type::Kind GetObjectType () { return Type::CLOCK; };
 
@@ -349,7 +349,7 @@
 class ClockGroup : public Clock {
  public:
        ClockGroup (TimelineGroup *timeline);
-       ~ClockGroup ();
+       virtual ~ClockGroup ();
        virtual Type::Kind GetObjectType () { return Type::CLOCKGROUP; };
 
        void AddChild (Clock *clock);
@@ -420,7 +420,7 @@
 class TimelineGroup : public Timeline {
  public:
        TimelineGroup ();
-       ~TimelineGroup ();
+       virtual ~TimelineGroup ();
        
        virtual Type::Kind GetObjectType () { return Type::TIMELINEGROUP; };
 

Modified: trunk/moon/src/control.h
===================================================================
--- trunk/moon/src/control.h    2007-09-26 18:19:58 UTC (rev 86425)
+++ trunk/moon/src/control.h    2007-09-26 18:26:58 UTC (rev 86426)
@@ -21,7 +21,7 @@
        FrameworkElement *real_object;
 
        Control () : real_object (NULL) { };
-       ~Control ();
+       virtual ~Control ();
        
        virtual Type::Kind GetObjectType () { return Type::CONTROL; }
 

Modified: trunk/moon/src/geometry.h
===================================================================
--- trunk/moon/src/geometry.h   2007-09-26 18:19:58 UTC (rev 86425)
+++ trunk/moon/src/geometry.h   2007-09-26 18:26:58 UTC (rev 86426)
@@ -44,7 +44,7 @@
        static DependencyProperty* TransformProperty;
 
        Geometry () : path (NULL) {};
-       ~Geometry ();
+       virtual ~Geometry ();
        virtual Type::Kind GetObjectType () { return Type::GEOMETRY; };
 
        virtual void OnPropertyChanged (DependencyProperty *prop);
@@ -224,7 +224,7 @@
        static DependencyProperty* StartPointProperty;
 
        PathFigure ();
-       ~PathFigure ();
+       virtual ~PathFigure ();
        virtual Type::Kind GetObjectType () { return Type::PATHFIGURE; };
 
        virtual void OnPropertyChanged (DependencyProperty *prop);

Modified: trunk/moon/src/media.h
===================================================================
--- trunk/moon/src/media.h      2007-09-26 18:19:58 UTC (rev 86425)
+++ trunk/moon/src/media.h      2007-09-26 18:26:58 UTC (rev 86426)
@@ -215,7 +215,7 @@
        MediaPlayer *mplayer;
        
        MediaElement ();
-       ~MediaElement ();
+       virtual ~MediaElement ();
        virtual Type::Kind GetObjectType () { return Type::MEDIAELEMENT; };
        
        // overrides

Modified: trunk/moon/src/shape.h
===================================================================
--- trunk/moon/src/shape.h      2007-09-26 18:19:58 UTC (rev 86425)
+++ trunk/moon/src/shape.h      2007-09-26 18:26:58 UTC (rev 86426)
@@ -52,7 +52,7 @@
        static DependencyProperty* StrokeThicknessProperty;
 
        Shape ();
-       ~Shape ();
+       virtual ~Shape ();
        virtual Type::Kind GetObjectType () { return Type::SHAPE; };
 
        //

Modified: trunk/moon/src/stylus.h
===================================================================
--- trunk/moon/src/stylus.h     2007-09-26 18:19:58 UTC (rev 86425)
+++ trunk/moon/src/stylus.h     2007-09-26 18:26:58 UTC (rev 86426)
@@ -20,7 +20,7 @@
 class StylusInfo : public DependencyObject {
  public:
        StylusInfo () { }
-       ~StylusInfo () { };
+       virtual ~StylusInfo () { };
        
        virtual Type::Kind GetObjectType () { return Type::STYLUSINFO; };
 
@@ -33,7 +33,7 @@
 class StylusPoint : public DependencyObject {
  public:
        StylusPoint () { }
-       ~StylusPoint () { };
+       virtual ~StylusPoint () { };
        
        virtual Type::Kind GetObjectType () { return Type::STYLUSPOINT; };
 
@@ -47,7 +47,7 @@
 class Stroke : public DependencyObject {
  public:
        Stroke () { }
-       ~Stroke () { };
+       virtual ~Stroke () { };
        
        virtual Type::Kind GetObjectType () { return Type::STROKE; };
 
@@ -60,7 +60,7 @@
 class DrawingAttributes : public DependencyObject {
  public:
        DrawingAttributes () { }
-       ~DrawingAttributes () { };
+       virtual ~DrawingAttributes () { };
        
        virtual Type::Kind GetObjectType () { return Type::DRAWINGATTRIBUTES; };
 
@@ -75,7 +75,7 @@
 class InkPresenter : public Canvas {
  public:
        InkPresenter () { }
-       ~InkPresenter () { };
+       virtual ~InkPresenter () { };
        
        virtual Type::Kind GetObjectType () { return Type::INKPRESENTER; };
 

Modified: trunk/moon/src/text.h
===================================================================
--- trunk/moon/src/text.h       2007-09-26 18:19:58 UTC (rev 86425)
+++ trunk/moon/src/text.h       2007-09-26 18:26:58 UTC (rev 86426)
@@ -81,7 +81,7 @@
        static DependencyProperty *TextDecorationsProperty;
        
        Inline ();
-       ~Inline ();
+       virtual ~Inline ();
        virtual Type::Kind GetObjectType () { return Type::INLINE; }
        virtual void OnPropertyChanged (DependencyProperty *prop);
        virtual void OnSubPropertyChanged (DependencyProperty *prop, 
DependencyProperty *subprop);
@@ -152,7 +152,7 @@
        static DependencyProperty *TextWrappingProperty;
        
        TextBlock ();
-       ~TextBlock ();
+       virtual ~TextBlock ();
        virtual Type::Kind GetObjectType () { return Type::TEXTBLOCK; };
        
        void SetFontSource (DependencyObject *downloader);

Modified: trunk/moon/src/transform.h
===================================================================
--- trunk/moon/src/transform.h  2007-09-26 18:19:58 UTC (rev 86425)
+++ trunk/moon/src/transform.h  2007-09-26 18:26:58 UTC (rev 86426)
@@ -167,7 +167,7 @@
        static DependencyProperty* ChildrenProperty;
 
        TransformGroup ();
-       ~TransformGroup ();
+       virtual ~TransformGroup ();
        virtual Type::Kind GetObjectType() { return Type::TRANSFORMGROUP; };
 
        virtual void OnSubPropertyChanged (DependencyProperty *prop, 
DependencyProperty *subprop);

Modified: trunk/moon/src/uielement.h
===================================================================
--- trunk/moon/src/uielement.h  2007-09-26 18:19:58 UTC (rev 86425)
+++ trunk/moon/src/uielement.h  2007-09-26 18:26:58 UTC (rev 86426)
@@ -37,7 +37,7 @@
        double total_opacity;
  public:
        UIElement ();
-       ~UIElement ();
+       virtual ~UIElement ();
        virtual Type::Kind GetObjectType () { return Type::UIELEMENT; };
 
        UIElement *parent;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to