Salome HOME
#18963 Minimize compiler warnings
[modules/gui.git] / src / SalomeApp / SalomeApp_DataObject.cxx
index bd480a8cae525a8eec94840ef13e91632b114af1..b606e3a2145f21f2cee8b6faac34aa8c5e6d79b1 100644 (file)
@@ -150,14 +150,10 @@ QString SalomeApp_DataObject::text( const int id ) const
   switch ( id )
   {
   case ValueId:
-#ifndef WIN32
-    if ( componentObject() != this )
-#else
     if ( componentObject() != (SUIT_DataObject*)this )
-#endif
       txt = value( object() );
-      if ( txt.isEmpty() )
-        txt = value( referencedObject() );
+    if ( txt.isEmpty() )
+      txt = value( referencedObject() );
     break;
   case IORId:
     txt = ior( referencedObject() );