-// Copyright (C) 2007-2014 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
*/
QByteArray GLViewer_MimeData::encodedData( const char* theObjectType ) const
{
- if( theObjectType == "GLViewer_Objects" )
- return myByteArray;
-
- return QByteArray();
+ if ( theObjectType && strcmp( theObjectType, "GLViewer_Objects" ) == 0 )
+ return myByteArray;
+
+ return QByteArray();
}