#include <SALOMEconfig.h>
#include CORBA_CLIENT_HEADER(SALOME_ContainerManager)
-PVServer_ServiceLoader::PVServer_ServiceLoader() throw(PVServer_ServiceLoader_Exception):
+PVServer_ServiceLoader::PVServer_ServiceLoader():
myLcc( 0 )
{
try
{
public:
PVServer_ServiceLoader_Exception(const std::string & what):_what(what) {}
- ~PVServer_ServiceLoader_Exception() throw () {}
- virtual const char* what() const throw() { return _what.c_str(); }
+ ~PVServer_ServiceLoader_Exception() {}
+ virtual const char* what() const noexcept { return _what.c_str(); }
private:
std::string _what;
};
class PVSERVERSERVICELOADER_EXPORT PVServer_ServiceLoader
{
public:
- PVServer_ServiceLoader() throw(PVServer_ServiceLoader_Exception);
+ PVServer_ServiceLoader() ;
virtual ~PVServer_ServiceLoader();
//! Get the IOR of the CORBA service handling the PVServer
if ( theObj && theObj->FindAttribute( anAttr, "AttributeGraphic" ) )
{
_PTR(AttributeGraphic) aGraphic (anAttr);
- return aGraphic->GetVisibility( (int)((ULONG_PTR)theId) ); //!< TODO: pointer truncation
+ return aGraphic->GetVisibility( *((int*)theId) ); //!< TODO: pointer truncation
}
return false;
if ( anObj->FindAttribute( aGAttr, "AttributeGraphic" ) )
{
_PTR(AttributeGraphic) anAttr ( aGAttr );
- anAttr->SetVisibility( (int)((ULONG_PTR)theId), theValue ); //!< TODO: pointer truncation
+ anAttr->SetVisibility( *((int*)theId), theValue ); //!< TODO: pointer truncation
}
else if ( theValue )
{
_PTR(StudyBuilder) aBuilder (aStudy->NewBuilder());
_PTR(AttributeGraphic) anAttr (aBuilder->FindOrCreateAttribute(anObj, "AttributeGraphic"));
- anAttr->SetVisibility( (int)((ULONG_PTR)theId), theValue ); //!< TODO: pointer truncation
+ anAttr->SetVisibility( *((int*)theId), theValue ); //!< TODO: pointer truncation
}
return true;
}