Salome HOME
updated copyright message
[modules/gui.git] / src / GLViewer / GLViewer_Object.cxx
index 99ba4263d47d6d4b62cead1f98e13f0e9a475853..748561b566ae05e4b2266f541663a888b65408df 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2016  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2023  CEA, EDF, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -140,7 +140,7 @@ QByteArray GLViewer_Object::getByteCopy()
     int anISize = sizeof( int );
 
     const char* aTypeStr = myType.toLatin1().constData();
-    const char* aToolTipStr = myToolTipText.toLatin1().constData();
+    const char* aToolTipStr = myToolTipText.toUtf8().constData();
 
     int aTypeLength = myType.length();
     int aToolTipLength = myToolTipText.length();
@@ -196,7 +196,7 @@ QByteArray GLViewer_Object::getByteCopy()
 
     aCurPos += aGLText.size();
     aPointer = (char*)&myOwner;
-    for( i = 0; i < sizeof( SUIT_DataOwner* ); i++, aPointer++ )
+    for( i = 0; i < (int)sizeof( SUIT_DataOwner* ); i++, aPointer++ )
         aResult[ aCurPos + i ] = *aPointer;
 
     return aResult;