I felt I had to do *something*
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@230 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
4573543ca8
commit
7d3a98264a
@ -100,8 +100,9 @@ dormant_flavor_info &
|
||||
dormant_flavor_info::operator=(const dormant_flavor_info &clone)
|
||||
{
|
||||
CALLED();
|
||||
//*this = static_cast<const flavor_info>(clone);
|
||||
*this = (const flavor_info)clone;
|
||||
// call operator=(const flavor_info &clone) to copy the flavor_info base class
|
||||
*this = static_cast<const flavor_info>(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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user