]> SALOME platform Git repositories - modules/gui.git/blobdiff - src/VTKViewer/VTKViewer_FramedTextActor.cxx
Salome HOME
updated copyright message
[modules/gui.git] / src / VTKViewer / VTKViewer_FramedTextActor.cxx
index a902d92a608fb7362748520bf860ea374f0994f5..232ccfc88c0e4e103312f1ac62a1c9126feec830 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2015  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2023  CEA, EDF, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -52,7 +52,7 @@ namespace
     return QString( txt );
 #endif
   }
-  const char* toUtf8( const QString& txt )
+  std::string toUtf8( const QString& txt )
   {
 #ifdef PAL22528_UNICODE
     return txt.toUtf8().constData();
@@ -63,7 +63,7 @@ namespace
 }
 
 //==================================================================
-vtkStandardNewMacro(VTKViewer_FramedTextActor);
+vtkStandardNewMacro(VTKViewer_FramedTextActor)
 
 //==================================================================
 // function : VTKViewer_FramedTextActor
@@ -300,7 +300,7 @@ void VTKViewer_FramedTextActor::SetText(const char* theText)
   while(anIter.hasNext())
     aTrimmedStringList.append(anIter.next().trimmed());
 
-  myTextActor->SetInput(toUtf8(aTrimmedStringList.join("\n")));
+  myTextActor->SetInput(toUtf8(aTrimmedStringList.join("\n")).c_str());
   Modified();
 }