From 7d3a98264ae957b00626941fb1a8572cf0184d0a Mon Sep 17 00:00:00 2001 From: beveloper Date: Mon, 15 Jul 2002 00:33:52 +0000 Subject: [PATCH] I felt I had to do *something* git-svn-id: file:///srv/svn/repos/haiku/trunk/current@230 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/media/MediaAddOn.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/kits/media/MediaAddOn.cpp b/src/kits/media/MediaAddOn.cpp index 140a1fab0f..950b417301 100644 --- a/src/kits/media/MediaAddOn.cpp +++ b/src/kits/media/MediaAddOn.cpp @@ -100,8 +100,9 @@ dormant_flavor_info & dormant_flavor_info::operator=(const dormant_flavor_info &clone) { CALLED(); - //*this = static_cast(clone); - *this = (const flavor_info)clone; + // call operator=(const flavor_info &clone) to copy the flavor_info base class + *this = static_cast(clone); + // copy the dormant_node_info member variable node_info = clone.node_info; return *this; } @@ -149,6 +150,7 @@ dormant_flavor_info::operator=(const flavor_info &clone) out_formats = 0; } + // initialize node_info with default values from dormant_node_info constructor dormant_node_info temp; node_info = temp;