Import Geant4 10.5.0.beta source tree
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4Xt.hh 70601 2013-06-03 11:20:53Z gcosmo $
|
||||
// $Id: G4Xt.hh 110808 2018-06-15 06:58:36Z gcosmo $
|
||||
//
|
||||
// To unify X11 event treatment between
|
||||
// G4/interfaces Xt sessions and G4/visualizations Xt drivers.
|
||||
@@ -57,6 +57,10 @@ public:
|
||||
void* GetEvent();
|
||||
void FlushAndWaitExecution();
|
||||
virtual ~G4Xt();
|
||||
// Workaround for gcc8 Coverity cast warning
|
||||
static bool xt_dispatch_event(void* a_event) {
|
||||
return XtDispatchEvent((XEvent*)a_event);
|
||||
}
|
||||
private:
|
||||
G4Xt (const G4Xt&);
|
||||
G4Xt (int,char**,char*);
|
||||
|
||||
@@ -157,7 +157,8 @@ void G4InteractorMessenger::SetNewValue (
|
||||
} else if(command==defaultIcons) {
|
||||
session->DefaultIcons(command->ConvertToBool(newValue));
|
||||
} else if(command==sys) {
|
||||
system((const char*)params[0]);
|
||||
int rc = system((const char*)params[0]);
|
||||
if ( rc < 0 ){ }
|
||||
}
|
||||
}
|
||||
delete [] params;
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4Xt.cc 66892 2013-01-17 10:57:59Z gunter $
|
||||
// $Id: G4Xt.cc 110808 2018-06-15 06:58:36Z gcosmo $
|
||||
//
|
||||
// G.Barrand
|
||||
|
||||
@@ -127,7 +127,9 @@ G4Xt::G4Xt (
|
||||
}
|
||||
SetArguments (argn,args);
|
||||
SetMainInteractor (topWidget);
|
||||
AddDispatcher ((G4DispatchFunction)XtDispatchEvent);
|
||||
AddDispatcher(xt_dispatch_event);
|
||||
// Coverity gcc8 cast warning
|
||||
// AddDispatcher ((G4DispatchFunction)XtDispatchEvent);
|
||||
}
|
||||
/***************************************************************************/
|
||||
G4Xt::~G4Xt (
|
||||
|
||||
Reference in New Issue
Block a user