[rkward-cvs] rkward/rkward/misc getfilenamewidget.cpp,1.1,1.2 rkobjectlistview.cpp,1.11,1.12 xmlhelper.cpp,1.3,1.4

Thomas Friedrichsmeier tfry at users.sourceforge.net
Thu Sep 29 16:02:53 UTC 2005


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

Modified Files:
	getfilenamewidget.cpp rkobjectlistview.cpp xmlhelper.cpp 
Log Message:
Code cleanups, focus: replacing "" with QString::null / QString.isEmpty (). Fix credits

Index: xmlhelper.cpp
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/misc/xmlhelper.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** xmlhelper.cpp	11 Sep 2005 22:06:31 -0000	1.3
--- xmlhelper.cpp	29 Sep 2005 16:02:51 -0000	1.4
***************
*** 78,82 ****
  			QDomElement e = n.toElement ();
  			if (!e.isNull ()) {
! 				if ((name == "") || (e.tagName () == name)) {
  					list.append (e);
  				}
--- 78,82 ----
  			QDomElement e = n.toElement ();
  			if (!e.isNull ()) {
! 				if ((name.isEmpty ()) || (e.tagName () == name)) {
  					list.append (e);
  				}

Index: rkobjectlistview.cpp
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/misc/rkobjectlistview.cpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** rkobjectlistview.cpp	22 Apr 2005 14:52:55 -0000	1.11
--- rkobjectlistview.cpp	29 Sep 2005 16:02:51 -0000	1.12
***************
*** 203,207 ****
  	} else if (object->isVariable ()) {
  		item->setText (2, static_cast<RKVariable*> (object)->getVarTypeString ());
! 		item->setText (3, static_cast<RKVariable*> (object)->makeClassString (""));
  	}
  
--- 203,207 ----
  	} else if (object->isVariable ()) {
  		item->setText (2, static_cast<RKVariable*> (object)->getVarTypeString ());
! 		item->setText (3, static_cast<RKVariable*> (object)->makeClassString (QString::null));
  	}
  

Index: getfilenamewidget.cpp
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/misc/getfilenamewidget.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** getfilenamewidget.cpp	31 Aug 2004 12:37:33 -0000	1.1
--- getfilenamewidget.cpp	29 Sep 2005 16:02:51 -0000	1.2
***************
*** 47,51 ****
  	GetFileNameWidget::mode = mode;
  	
! 	if (caption == "") {
  		GetFileNameWidget::caption = label;
  	} else {
--- 47,51 ----
  	GetFileNameWidget::mode = mode;
  	
! 	if (caption.isEmpty ()) {
  		GetFileNameWidget::caption = label;
  	} else {
***************
*** 74,78 ****
  	}
  
! 	if (temp != "") {
  		location_edit->setText (temp);
  	}
--- 74,78 ----
  	}
  
! 	if (!temp.isEmpty ()) {
  		location_edit->setText (temp);
  	}





More information about the rkward-tracker mailing list