[rkward-cvs] rkward/rkward robjectviewer.cpp,1.5,1.6

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


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

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

Index: robjectviewer.cpp
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/robjectviewer.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** robjectviewer.cpp	29 Sep 2005 16:02:50 -0000	1.5
--- robjectviewer.cpp	9 Dec 2005 14:05:13 -0000	1.6
***************
*** 43,49 ****
  	view_area->append (i18n("Object name: ") + object->getShortName ());
  	view_area->append (i18n("\nFull location: ") + object->getFullName ());
  	if (object->isContainer ()) {
  		RContainerObject *cobj = static_cast<RContainerObject*> (object);		// for convenience only
- 		view_area->append (i18n("\nClass: ") + cobj->makeClassString (", "));
  		if (cobj->numDimensions ()) {
  			QString dummy = i18n("\nDimensions: ") + QString ().setNum (cobj->getDimension (0));
--- 43,49 ----
  	view_area->append (i18n("Object name: ") + object->getShortName ());
  	view_area->append (i18n("\nFull location: ") + object->getFullName ());
+ 	view_area->append (i18n("\nClass(es): ") + object->makeClassString (", "));
  	if (object->isContainer ()) {
  		RContainerObject *cobj = static_cast<RContainerObject*> (object);		// for convenience only
  		if (cobj->numDimensions ()) {
  			QString dummy = i18n("\nDimensions: ") + QString ().setNum (cobj->getDimension (0));





More information about the rkward-tracker mailing list