Import Geant4 10.5.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2018-06-29 10:58:11 +02:00
parent fe81a77428
commit 6aa23be517
1581 changed files with 124288 additions and 83758 deletions
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id: G4OpenGL2PSAction.cc 88206 2015-02-03 13:01:27Z gcosmo $
// $Id: G4OpenGL2PSAction.cc 110513 2018-05-28 07:37:38Z gcosmo $
//
//
@@ -48,7 +48,6 @@ G4OpenGL2PSAction::G4OpenGL2PSAction(
//////////////////////////////////////////////////////////////////////////////
//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
{
fFileName = "";
fFile = 0;
fViewport[0] = 0;
fViewport[1] = 0;
@@ -112,7 +111,7 @@ void G4OpenGL2PSAction::setFileName(
//////////////////////////////////////////////////////////////////////////////
//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
{
fFileName = (strncpy((char*)malloc((unsigned)strlen(aFileName) + 1), aFileName, (unsigned)strlen(aFileName) + 1));
fFileName = aFileName;
}
//////////////////////////////////////////////////////////////////////////////
bool G4OpenGL2PSAction::enableFileWriting(
@@ -192,7 +191,7 @@ bool G4OpenGL2PSAction::G4gl2psBegin(
options,
GL_RGBA,0, NULL,0,0,0,
fBufferSize,
fFile,fFileName);
fFile,fFileName.c_str());
if (res == GL2PS_ERROR) {
return false;
}