[rkward-cvs] rkward/rkward/misc rkobjectlistview.cpp,1.13,1.14

Thomas Friedrichsmeier tfry at users.sourceforge.net
Fri Dec 9 14:05:17 UTC 2005


Update of /cvsroot/rkward/rkward/rkward/misc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7653/misc

Modified Files:
	rkobjectlistview.cpp 
Log Message:
Cleaning up duplicate code in RObject classes. Should also fix a small memory leak. More duplications will be removed later

Index: rkobjectlistview.cpp
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/misc/rkobjectlistview.cpp,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** rkobjectlistview.cpp	2 Oct 2005 17:19:02 -0000	1.13
--- rkobjectlistview.cpp	9 Dec 2005 14:05:15 -0000	1.14
***************
*** 199,208 ****
  	item->setText (0, object->getShortName ());
  	item->setText (1, object->getLabel ());
! 	if (object->isContainer ()) {
! 		item->setText (3, static_cast<RContainerObject*> (object)->makeClassString ("; "));
! 	} else if (object->isVariable ()) {
  		item->setText (2, static_cast<RKVariable*> (object)->getVarTypeString ());
- 		item->setText (3, static_cast<RKVariable*> (object)->makeClassString (QString::null));
  	}
  
  	if (object->isDataFrame ()) {
--- 199,206 ----
  	item->setText (0, object->getShortName ());
  	item->setText (1, object->getLabel ());
! 	if (object->isVariable ()) {
  		item->setText (2, static_cast<RKVariable*> (object)->getVarTypeString ());
  	}
+ 	item->setText (3, object->makeClassString ("; "));
  
  	if (object->isDataFrame ()) {





More information about the rkward-tracker mailing list