[Uml-devel] kdesdk/umbrello/umbrello

Antonio Larrosa Jimenez larrosa at kde.org
Thu Feb 27 07:18:55 UTC 2003


CVS commit by antlarr: 

Removed comparisons to ""


  M +1 -1      associationwidgetdata.cpp   1.4
  M +1 -1      codegenerators/adawriter.cpp   1.4
  M +1 -1      floatingtextdata.cpp   1.3
  M +1 -1      statewidgetdata.cpp   1.2
  M +3 -3      umlviewdata.cpp   1.9
  M +1 -1      umlwidgetdata.cpp   1.2


--- kdesdk/umbrello/umbrello/associationwidgetdata.cpp  #1.3:1.4
@@ -847,5 +847,5 @@ bool AssociationWidgetData::loadFromXMI(
         m_nWidgetAID = widgetaid.toInt();
         m_nWidgetBID = widgetbid.toInt();
-        if( type != "" )
+        if( !type.isEmpty() )
                 m_AssocType = (Uml::Association_Type)type.toInt();
 

--- kdesdk/umbrello/umbrello/floatingtextdata.cpp  #1.2:1.3
@@ -225,5 +225,5 @@ bool FloatingTextData::loadFromXMI( QDom
         QString role = qElement.attribute( "role", "" );
 
-        if( role != "" )
+        if( !role.isEmpty() )
                 m_Role = (Uml::Text_Role)role.toInt();
 

--- kdesdk/umbrello/umbrello/statewidgetdata.cpp  #1.1:1.2
@@ -122,5 +122,5 @@ bool StateWidgetData::loadFromXMI( QDomE
                         if( activityElement.tagName() == "Activity" ) {
                                 QString name = activityElement.attribute( "name", "" );
-                                if( name != "" )
+                                if( !name.isEmpty() )
                                         m_Activities.append( name );
                         }//end if

--- kdesdk/umbrello/umbrello/umlwidgetdata.cpp  #1.1:1.2
@@ -365,5 +365,5 @@ bool UMLWidgetData::loadFromXMI( QDomEle
 
         m_nId = id.toInt();
-        if( font != "" ) {
+        if( !font.isEmpty() ) {
                 m_Font.fromString( font );
         }

--- kdesdk/umbrello/umbrello/umlviewdata.cpp  #1.8:1.9
@@ -562,5 +562,5 @@ bool UMLViewData::loadFromXMI( QDomEleme
         //optionstate uistate
         QString font = qElement.attribute( "font", "" );
-        if( font != "" )
+        if( !font.isEmpty() )
                 m_Options.uiState.font.fromString( font );
         QString fillcolor = qElement.attribute( "fillcolor", "" );
@@ -606,7 +606,7 @@ bool UMLViewData::loadFromXMI( QDomEleme
 
         m_Type = (Uml::Diagram_Type)type.toInt();
-        if( fillcolor != "" )
+        if( !fillcolor.isEmpty() )
                 m_Options.uiState.fillColor = QColor( fillcolor );
-        if( linecolor != "" )
+        if( !linecolor.isEmpty() )
                 m_Options.uiState.lineColor = QColor( linecolor );
         m_nLocalID = localid.toInt();

--- kdesdk/umbrello/umbrello/codegenerators/adawriter.cpp  #1.3:1.4
@@ -433,5 +433,5 @@ void AdaWriter::writeOperation(UMLOperat
         QList<UMLAttribute> *atl = op->getParmList();
         QString rettype = op->getReturnType();
-        bool use_procedure = (rettype == "" || rettype == "void");
+        bool use_procedure = (rettype.isEmpty() || rettype == "void");
 
         ada << spc();






More information about the umbrello-devel mailing list