branchobj.cpp
changeset 602 56c9bb79d20b
parent 593 e46d634e071c
child 604 f2aab2a9b6cb
     1.1 --- a/branchobj.cpp	Tue Sep 04 13:53:33 2007 +0000
     1.2 +++ b/branchobj.cpp	Tue Oct 16 09:53:23 2007 +0000
     1.3 @@ -734,7 +734,7 @@
     1.4  
     1.5  void BranchObj::setHideTmp (HideTmpMode mode)
     1.6  {
     1.7 -	if (mode==HideExport && hasHiddenExportParent(this))
     1.8 +	if (mode==HideExport && hasHiddenExportParent())
     1.9  	{
    1.10  		setVisibility (false);
    1.11  		hidden=true;
    1.12 @@ -751,16 +751,16 @@
    1.13  		branch.at(i)->setHideTmp (mode);
    1.14  }
    1.15  
    1.16 -bool BranchObj::hasHiddenExportParent(BranchObj *start)
    1.17 +bool BranchObj::hasHiddenExportParent()
    1.18  {
    1.19  	// Calls parents recursivly to
    1.20  	// find out, if we are temp. hidden
    1.21  
    1.22  	if (hideExport) return true;
    1.23  
    1.24 -	BranchObj* bo=(BranchObj*)(parObj);
    1.25 +	BranchObj* bo=(BranchObj*)parObj;
    1.26  	if (bo) 
    1.27 -		return bo->hasHiddenExportParent(start);
    1.28 +		return bo->hasHiddenExportParent();
    1.29  	else
    1.30  		return false;
    1.31  }