-// Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2024 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
A constructor
Parameters using for QOGLWidget as is
*/
-GLViewer_Widget::GLViewer_Widget( QWidget* parent, const char* name ):
+GLViewer_Widget::GLViewer_Widget( QWidget* parent, const char* /*name*/ ):
QGLWidget( parent, 0/*, WRepaintNoErase | WResizeNoErase*/ )
{
myViewPort = ( GLViewer_ViewPort2d* )parent;
//get image
QImage buf;
- QString aPicturePath = getenv("GLViewer__Background_Picture");
+ QString aPicturePath = Qtx::getenv("GLViewer__Background_Picture");
if ( !aPicturePath.isEmpty() && buf.load( aPicturePath ) )
{ // Load first image from file
/*!
Custom enter event handler
*/
-void GLViewer_Widget::enterEvent( QEvent* e )
+void GLViewer_Widget::enterEvent( QEvent* /*e*/ )
{
updateGL();
}
/*!
Custom leave event handler
*/
-void GLViewer_Widget::leaveEvent( QEvent* e )
+void GLViewer_Widget::leaveEvent( QEvent* /*e*/ )
{
updateGL();
}
aBuffer += "> false 3 colorimage\n\n";
- hFile.write( aBuffer.toAscii() );
+ hFile.write( aBuffer.toLatin1() );
}
}
memcpy( dest, source, aSize/8 );
else
{
- double r, g, b; WORD color;
+ double r=0, g=0, b=0; WORD color;
for( int i=0; i<width; i++ )
{
color = 0;