Changeset 2605da22 in sasview


Ignore:
Timestamp:
Dec 7, 2011 3:27:31 PM (13 years ago)
Author:
Mathieu Doucet <doucetm@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
5f0dcab
Parents:
00c2141
Message:

Re #4 Still a few more warnings

Location:
sansmodels/src/sans/models/c_models
Files:
49 edited

Legend:

Unmodified
Added
Removed
  • sansmodels/src/sans/models/c_models/CBCCrystalModel.cpp

    r00c2141 r2605da22  
    613613     
    614614    d = PyModule_GetDict(module); 
    615     CBCCrystalModelError = PyErr_NewException("CBCCrystalModel.error", NULL, NULL); 
     615    static char error_name[] = "CBCCrystalModel.error"; 
     616    CBCCrystalModelError = PyErr_NewException(error_name, NULL, NULL); 
    616617    PyDict_SetItemString(d, "CBCCrystalModelError", CBCCrystalModelError); 
    617618} 
  • sansmodels/src/sans/models/c_models/CBarBellModel.cpp

    r00c2141 r2605da22  
    621621     
    622622    d = PyModule_GetDict(module); 
    623     CBarBellModelError = PyErr_NewException("CBarBellModel.error", NULL, NULL); 
     623    static char error_name[] = "CBarBellModel.error"; 
     624    CBarBellModelError = PyErr_NewException(error_name, NULL, NULL); 
    624625    PyDict_SetItemString(d, "CBarBellModelError", CBarBellModelError); 
    625626} 
  • sansmodels/src/sans/models/c_models/CBinaryHSModel.cpp

    r00c2141 r2605da22  
    577577     
    578578    d = PyModule_GetDict(module); 
    579     CBinaryHSModelError = PyErr_NewException("CBinaryHSModel.error", NULL, NULL); 
     579    static char error_name[] = "CBinaryHSModel.error"; 
     580    CBinaryHSModelError = PyErr_NewException(error_name, NULL, NULL); 
    580581    PyDict_SetItemString(d, "CBinaryHSModelError", CBinaryHSModelError); 
    581582} 
  • sansmodels/src/sans/models/c_models/CCSParallelepipedModel.cpp

    r00c2141 r2605da22  
    669669     
    670670    d = PyModule_GetDict(module); 
    671     CCSParallelepipedModelError = PyErr_NewException("CCSParallelepipedModel.error", NULL, NULL); 
     671    static char error_name[] = "CCSParallelepipedModel.error"; 
     672    CCSParallelepipedModelError = PyErr_NewException(error_name, NULL, NULL); 
    672673    PyDict_SetItemString(d, "CCSParallelepipedModelError", CCSParallelepipedModelError); 
    673674} 
  • sansmodels/src/sans/models/c_models/CCappedCylinderModel.cpp

    r00c2141 r2605da22  
    621621     
    622622    d = PyModule_GetDict(module); 
    623     CCappedCylinderModelError = PyErr_NewException("CCappedCylinderModel.error", NULL, NULL); 
     623    static char error_name[] = "CCappedCylinderModel.error"; 
     624    CCappedCylinderModelError = PyErr_NewException(error_name, NULL, NULL); 
    624625    PyDict_SetItemString(d, "CCappedCylinderModelError", CCappedCylinderModelError); 
    625626} 
  • sansmodels/src/sans/models/c_models/CCoreFourShellModel.cpp

    r00c2141 r2605da22  
    641641     
    642642    d = PyModule_GetDict(module); 
    643     CCoreFourShellModelError = PyErr_NewException("CCoreFourShellModel.error", NULL, NULL); 
     643    static char error_name[] = "CCoreFourShellModel.error"; 
     644    CCoreFourShellModelError = PyErr_NewException(error_name, NULL, NULL); 
    644645    PyDict_SetItemString(d, "CCoreFourShellModelError", CCoreFourShellModelError); 
    645646} 
  • sansmodels/src/sans/models/c_models/CCoreShellCylinderModel.cpp

    r00c2141 r2605da22  
    626626     
    627627    d = PyModule_GetDict(module); 
    628     CCoreShellCylinderModelError = PyErr_NewException("CCoreShellCylinderModel.error", NULL, NULL); 
     628    static char error_name[] = "CCoreShellCylinderModel.error"; 
     629    CCoreShellCylinderModelError = PyErr_NewException(error_name, NULL, NULL); 
    629630    PyDict_SetItemString(d, "CCoreShellCylinderModelError", CCoreShellCylinderModelError); 
    630631} 
  • sansmodels/src/sans/models/c_models/CCoreShellEllipsoidModel.cpp

    r00c2141 r2605da22  
    644644     
    645645    d = PyModule_GetDict(module); 
    646     CCoreShellEllipsoidModelError = PyErr_NewException("CCoreShellEllipsoidModel.error", NULL, NULL); 
     646    static char error_name[] = "CCoreShellEllipsoidModel.error"; 
     647    CCoreShellEllipsoidModelError = PyErr_NewException(error_name, NULL, NULL); 
    647648    PyDict_SetItemString(d, "CCoreShellEllipsoidModelError", CCoreShellEllipsoidModelError); 
    648649} 
  • sansmodels/src/sans/models/c_models/CCoreShellModel.cpp

    r00c2141 r2605da22  
    572572     
    573573    d = PyModule_GetDict(module); 
    574     CCoreShellModelError = PyErr_NewException("CCoreShellModel.error", NULL, NULL); 
     574    static char error_name[] = "CCoreShellModel.error"; 
     575    CCoreShellModelError = PyErr_NewException(error_name, NULL, NULL); 
    575576    PyDict_SetItemString(d, "CCoreShellModelError", CCoreShellModelError); 
    576577} 
  • sansmodels/src/sans/models/c_models/CCylinderModel.cpp

    r00c2141 r2605da22  
    603603     
    604604    d = PyModule_GetDict(module); 
    605     CCylinderModelError = PyErr_NewException("CCylinderModel.error", NULL, NULL); 
     605    static char error_name[] = "CCylinderModel.error"; 
     606    CCylinderModelError = PyErr_NewException(error_name, NULL, NULL); 
    606607    PyDict_SetItemString(d, "CCylinderModelError", CCylinderModelError); 
    607608} 
  • sansmodels/src/sans/models/c_models/CDiamCylFunc.cpp

    r00c2141 r2605da22  
    547547     
    548548    d = PyModule_GetDict(module); 
    549     CDiamCylFuncError = PyErr_NewException("CDiamCylFunc.error", NULL, NULL); 
     549    static char error_name[] = "CDiamCylFunc.error"; 
     550    CDiamCylFuncError = PyErr_NewException(error_name, NULL, NULL); 
    550551    PyDict_SetItemString(d, "CDiamCylFuncError", CDiamCylFuncError); 
    551552} 
  • sansmodels/src/sans/models/c_models/CDiamEllipFunc.cpp

    r00c2141 r2605da22  
    547547     
    548548    d = PyModule_GetDict(module); 
    549     CDiamEllipFuncError = PyErr_NewException("CDiamEllipFunc.error", NULL, NULL); 
     549    static char error_name[] = "CDiamEllipFunc.error"; 
     550    CDiamEllipFuncError = PyErr_NewException(error_name, NULL, NULL); 
    550551    PyDict_SetItemString(d, "CDiamEllipFuncError", CDiamEllipFuncError); 
    551552} 
  • sansmodels/src/sans/models/c_models/CEllipsoidModel.cpp

    r00c2141 r2605da22  
    603603     
    604604    d = PyModule_GetDict(module); 
    605     CEllipsoidModelError = PyErr_NewException("CEllipsoidModel.error", NULL, NULL); 
     605    static char error_name[] = "CEllipsoidModel.error"; 
     606    CEllipsoidModelError = PyErr_NewException(error_name, NULL, NULL); 
    606607    PyDict_SetItemString(d, "CEllipsoidModelError", CEllipsoidModelError); 
    607608} 
  • sansmodels/src/sans/models/c_models/CEllipticalCylinderModel.cpp

    r00c2141 r2605da22  
    639639     
    640640    d = PyModule_GetDict(module); 
    641     CEllipticalCylinderModelError = PyErr_NewException("CEllipticalCylinderModel.error", NULL, NULL); 
     641    static char error_name[] = "CEllipticalCylinderModel.error"; 
     642    CEllipticalCylinderModelError = PyErr_NewException(error_name, NULL, NULL); 
    642643    PyDict_SetItemString(d, "CEllipticalCylinderModelError", CEllipticalCylinderModelError); 
    643644} 
  • sansmodels/src/sans/models/c_models/CFCCrystalModel.cpp

    r00c2141 r2605da22  
    613613     
    614614    d = PyModule_GetDict(module); 
    615     CFCCrystalModelError = PyErr_NewException("CFCCrystalModel.error", NULL, NULL); 
     615    static char error_name[] = "CFCCrystalModel.error"; 
     616    CFCCrystalModelError = PyErr_NewException(error_name, NULL, NULL); 
    616617    PyDict_SetItemString(d, "CFCCrystalModelError", CFCCrystalModelError); 
    617618} 
  • sansmodels/src/sans/models/c_models/CFlexCylEllipXModel.cpp

    r00c2141 r2605da22  
    603603     
    604604    d = PyModule_GetDict(module); 
    605     CFlexCylEllipXModelError = PyErr_NewException("CFlexCylEllipXModel.error", NULL, NULL); 
     605    static char error_name[] = "CFlexCylEllipXModel.error"; 
     606    CFlexCylEllipXModelError = PyErr_NewException(error_name, NULL, NULL); 
    606607    PyDict_SetItemString(d, "CFlexCylEllipXModelError", CFlexCylEllipXModelError); 
    607608} 
  • sansmodels/src/sans/models/c_models/CFlexibleCylinderModel.cpp

    r00c2141 r2605da22  
    585585     
    586586    d = PyModule_GetDict(module); 
    587     CFlexibleCylinderModelError = PyErr_NewException("CFlexibleCylinderModel.error", NULL, NULL); 
     587    static char error_name[] = "CFlexibleCylinderModel.error"; 
     588    CFlexibleCylinderModelError = PyErr_NewException(error_name, NULL, NULL); 
    588589    PyDict_SetItemString(d, "CFlexibleCylinderModelError", CFlexibleCylinderModelError); 
    589590} 
  • sansmodels/src/sans/models/c_models/CFractalModel.cpp

    r00c2141 r2605da22  
    559559     
    560560    d = PyModule_GetDict(module); 
    561     CFractalModelError = PyErr_NewException("CFractalModel.error", NULL, NULL); 
     561    static char error_name[] = "CFractalModel.error"; 
     562    CFractalModelError = PyErr_NewException(error_name, NULL, NULL); 
    562563    PyDict_SetItemString(d, "CFractalModelError", CFractalModelError); 
    563564} 
  • sansmodels/src/sans/models/c_models/CFuzzySphereModel.cpp

    r00c2141 r2605da22  
    567567     
    568568    d = PyModule_GetDict(module); 
    569     CFuzzySphereModelError = PyErr_NewException("CFuzzySphereModel.error", NULL, NULL); 
     569    static char error_name[] = "CFuzzySphereModel.error"; 
     570    CFuzzySphereModelError = PyErr_NewException(error_name, NULL, NULL); 
    570571    PyDict_SetItemString(d, "CFuzzySphereModelError", CFuzzySphereModelError); 
    571572} 
  • sansmodels/src/sans/models/c_models/CGaussian.cpp

    r00c2141 r2605da22  
    526526     
    527527    d = PyModule_GetDict(module); 
    528     CGaussianError = PyErr_NewException("CGaussian.error", NULL, NULL); 
     528    static char error_name[] = "CGaussian.error"; 
     529    CGaussianError = PyErr_NewException(error_name, NULL, NULL); 
    529530    PyDict_SetItemString(d, "CGaussianError", CGaussianError); 
    530531} 
  • sansmodels/src/sans/models/c_models/CHardsphereStructure.cpp

    r00c2141 r2605da22  
    534534     
    535535    d = PyModule_GetDict(module); 
    536     CHardsphereStructureError = PyErr_NewException("CHardsphereStructure.error", NULL, NULL); 
     536    static char error_name[] = "CHardsphereStructure.error"; 
     537    CHardsphereStructureError = PyErr_NewException(error_name, NULL, NULL); 
    537538    PyDict_SetItemString(d, "CHardsphereStructureError", CHardsphereStructureError); 
    538539} 
  • sansmodels/src/sans/models/c_models/CHayterMSAStructure.cpp

    r00c2141 r2605da22  
    554554     
    555555    d = PyModule_GetDict(module); 
    556     CHayterMSAStructureError = PyErr_NewException("CHayterMSAStructure.error", NULL, NULL); 
     556    static char error_name[] = "CHayterMSAStructure.error"; 
     557    CHayterMSAStructureError = PyErr_NewException(error_name, NULL, NULL); 
    557558    PyDict_SetItemString(d, "CHayterMSAStructureError", CHayterMSAStructureError); 
    558559} 
  • sansmodels/src/sans/models/c_models/CHollowCylinderModel.cpp

    r00c2141 r2605da22  
    621621     
    622622    d = PyModule_GetDict(module); 
    623     CHollowCylinderModelError = PyErr_NewException("CHollowCylinderModel.error", NULL, NULL); 
     623    static char error_name[] = "CHollowCylinderModel.error"; 
     624    CHollowCylinderModelError = PyErr_NewException(error_name, NULL, NULL); 
    624625    PyDict_SetItemString(d, "CHollowCylinderModelError", CHollowCylinderModelError); 
    625626} 
  • sansmodels/src/sans/models/c_models/CLamellarFFHGModel.cpp

    r00c2141 r2605da22  
    572572     
    573573    d = PyModule_GetDict(module); 
    574     CLamellarFFHGModelError = PyErr_NewException("CLamellarFFHGModel.error", NULL, NULL); 
     574    static char error_name[] = "CLamellarFFHGModel.error"; 
     575    CLamellarFFHGModelError = PyErr_NewException(error_name, NULL, NULL); 
    575576    PyDict_SetItemString(d, "CLamellarFFHGModelError", CLamellarFFHGModelError); 
    576577} 
  • sansmodels/src/sans/models/c_models/CLamellarModel.cpp

    r00c2141 r2605da22  
    549549     
    550550    d = PyModule_GetDict(module); 
    551     CLamellarModelError = PyErr_NewException("CLamellarModel.error", NULL, NULL); 
     551    static char error_name[] = "CLamellarModel.error"; 
     552    CLamellarModelError = PyErr_NewException(error_name, NULL, NULL); 
    552553    PyDict_SetItemString(d, "CLamellarModelError", CLamellarModelError); 
    553554} 
  • sansmodels/src/sans/models/c_models/CLamellarPCrystalModel.cpp

    r00c2141 r2605da22  
    564564     
    565565    d = PyModule_GetDict(module); 
    566     CLamellarPCrystalModelError = PyErr_NewException("CLamellarPCrystalModel.error", NULL, NULL); 
     566    static char error_name[] = "CLamellarPCrystalModel.error"; 
     567    CLamellarPCrystalModelError = PyErr_NewException(error_name, NULL, NULL); 
    567568    PyDict_SetItemString(d, "CLamellarPCrystalModelError", CLamellarPCrystalModelError); 
    568569} 
  • sansmodels/src/sans/models/c_models/CLamellarPSHGModel.cpp

    r00c2141 r2605da22  
    600600     
    601601    d = PyModule_GetDict(module); 
    602     CLamellarPSHGModelError = PyErr_NewException("CLamellarPSHGModel.error", NULL, NULL); 
     602    static char error_name[] = "CLamellarPSHGModel.error"; 
     603    CLamellarPSHGModelError = PyErr_NewException(error_name, NULL, NULL); 
    603604    PyDict_SetItemString(d, "CLamellarPSHGModelError", CLamellarPSHGModelError); 
    604605} 
  • sansmodels/src/sans/models/c_models/CLamellarPSModel.cpp

    r00c2141 r2605da22  
    577577     
    578578    d = PyModule_GetDict(module); 
    579     CLamellarPSModelError = PyErr_NewException("CLamellarPSModel.error", NULL, NULL); 
     579    static char error_name[] = "CLamellarPSModel.error"; 
     580    CLamellarPSModelError = PyErr_NewException(error_name, NULL, NULL); 
    580581    PyDict_SetItemString(d, "CLamellarPSModelError", CLamellarPSModelError); 
    581582} 
  • sansmodels/src/sans/models/c_models/CLogNormal.cpp

    r00c2141 r2605da22  
    526526     
    527527    d = PyModule_GetDict(module); 
    528     CLogNormalError = PyErr_NewException("CLogNormal.error", NULL, NULL); 
     528    static char error_name[] = "CLogNormal.error"; 
     529    CLogNormalError = PyErr_NewException(error_name, NULL, NULL); 
    529530    PyDict_SetItemString(d, "CLogNormalError", CLogNormalError); 
    530531} 
  • sansmodels/src/sans/models/c_models/CLorentzian.cpp

    r00c2141 r2605da22  
    526526     
    527527    d = PyModule_GetDict(module); 
    528     CLorentzianError = PyErr_NewException("CLorentzian.error", NULL, NULL); 
     528    static char error_name[] = "CLorentzian.error"; 
     529    CLorentzianError = PyErr_NewException(error_name, NULL, NULL); 
    529530    PyDict_SetItemString(d, "CLorentzianError", CLorentzianError); 
    530531} 
  • sansmodels/src/sans/models/c_models/CMultiShellModel.cpp

    r00c2141 r2605da22  
    590590     
    591591    d = PyModule_GetDict(module); 
    592     CMultiShellModelError = PyErr_NewException("CMultiShellModel.error", NULL, NULL); 
     592    static char error_name[] = "CMultiShellModel.error"; 
     593    CMultiShellModelError = PyErr_NewException(error_name, NULL, NULL); 
    593594    PyDict_SetItemString(d, "CMultiShellModelError", CMultiShellModelError); 
    594595} 
  • sansmodels/src/sans/models/c_models/COnionModel.cpp

    r00c2141 r2605da22  
    934934     
    935935    d = PyModule_GetDict(module); 
    936     COnionModelError = PyErr_NewException("COnionModel.error", NULL, NULL); 
     936    static char error_name[] = "COnionModel.error"; 
     937    COnionModelError = PyErr_NewException(error_name, NULL, NULL); 
    937938    PyDict_SetItemString(d, "COnionModelError", COnionModelError); 
    938939} 
  • sansmodels/src/sans/models/c_models/CParallelepipedModel.cpp

    r00c2141 r2605da22  
    639639     
    640640    d = PyModule_GetDict(module); 
    641     CParallelepipedModelError = PyErr_NewException("CParallelepipedModel.error", NULL, NULL); 
     641    static char error_name[] = "CParallelepipedModel.error"; 
     642    CParallelepipedModelError = PyErr_NewException(error_name, NULL, NULL); 
    642643    PyDict_SetItemString(d, "CParallelepipedModelError", CParallelepipedModelError); 
    643644} 
  • sansmodels/src/sans/models/c_models/CPearlNecklaceModel.cpp

    r00c2141 r2605da22  
    582582     
    583583    d = PyModule_GetDict(module); 
    584     CPearlNecklaceModelError = PyErr_NewException("CPearlNecklaceModel.error", NULL, NULL); 
     584    static char error_name[] = "CPearlNecklaceModel.error"; 
     585    CPearlNecklaceModelError = PyErr_NewException(error_name, NULL, NULL); 
    585586    PyDict_SetItemString(d, "CPearlNecklaceModelError", CPearlNecklaceModelError); 
    586587} 
  • sansmodels/src/sans/models/c_models/CPoly_GaussCoil.cpp

    r00c2141 r2605da22  
    544544     
    545545    d = PyModule_GetDict(module); 
    546     CPoly_GaussCoilError = PyErr_NewException("CPoly_GaussCoil.error", NULL, NULL); 
     546    static char error_name[] = "CPoly_GaussCoil.error"; 
     547    CPoly_GaussCoilError = PyErr_NewException(error_name, NULL, NULL); 
    547548    PyDict_SetItemString(d, "CPoly_GaussCoilError", CPoly_GaussCoilError); 
    548549} 
  • sansmodels/src/sans/models/c_models/CRPAModel.cpp

    r00c2141 r2605da22  
    669669     
    670670    d = PyModule_GetDict(module); 
    671     CRPAModelError = PyErr_NewException("CRPAModel.error", NULL, NULL); 
     671    static char error_name[] = "CRPAModel.error"; 
     672    CRPAModelError = PyErr_NewException(error_name, NULL, NULL); 
    672673    PyDict_SetItemString(d, "CRPAModelError", CRPAModelError); 
    673674} 
  • sansmodels/src/sans/models/c_models/CReflAdvModel.cpp

    r00c2141 r2605da22  
    879879     
    880880    d = PyModule_GetDict(module); 
    881     CReflAdvModelError = PyErr_NewException("CReflAdvModel.error", NULL, NULL); 
     881    static char error_name[] = "CReflAdvModel.error"; 
     882    CReflAdvModelError = PyErr_NewException(error_name, NULL, NULL); 
    882883    PyDict_SetItemString(d, "CReflAdvModelError", CReflAdvModelError); 
    883884} 
  • sansmodels/src/sans/models/c_models/CReflModel.cpp

    r00c2141 r2605da22  
    759759     
    760760    d = PyModule_GetDict(module); 
    761     CReflModelError = PyErr_NewException("CReflModel.error", NULL, NULL); 
     761    static char error_name[] = "CReflModel.error"; 
     762    CReflModelError = PyErr_NewException(error_name, NULL, NULL); 
    762763    PyDict_SetItemString(d, "CReflModelError", CReflModelError); 
    763764} 
  • sansmodels/src/sans/models/c_models/CSCCrystalModel.cpp

    r00c2141 r2605da22  
    613613     
    614614    d = PyModule_GetDict(module); 
    615     CSCCrystalModelError = PyErr_NewException("CSCCrystalModel.error", NULL, NULL); 
     615    static char error_name[] = "CSCCrystalModel.error"; 
     616    CSCCrystalModelError = PyErr_NewException(error_name, NULL, NULL); 
    616617    PyDict_SetItemString(d, "CSCCrystalModelError", CSCCrystalModelError); 
    617618} 
  • sansmodels/src/sans/models/c_models/CSLDCalFunc.cpp

    r00c2141 r2605da22  
    554554     
    555555    d = PyModule_GetDict(module); 
    556     CSLDCalFuncError = PyErr_NewException("CSLDCalFunc.error", NULL, NULL); 
     556    static char error_name[] = "CSLDCalFunc.error"; 
     557    CSLDCalFuncError = PyErr_NewException(error_name, NULL, NULL); 
    557558    PyDict_SetItemString(d, "CSLDCalFuncError", CSLDCalFuncError); 
    558559} 
  • sansmodels/src/sans/models/c_models/CSchulz.cpp

    r00c2141 r2605da22  
    526526     
    527527    d = PyModule_GetDict(module); 
    528     CSchulzError = PyErr_NewException("CSchulz.error", NULL, NULL); 
     528    static char error_name[] = "CSchulz.error"; 
     529    CSchulzError = PyErr_NewException(error_name, NULL, NULL); 
    529530    PyDict_SetItemString(d, "CSchulzError", CSchulzError); 
    530531} 
  • sansmodels/src/sans/models/c_models/CSphereModel.cpp

    r00c2141 r2605da22  
    549549     
    550550    d = PyModule_GetDict(module); 
    551     CSphereModelError = PyErr_NewException("CSphereModel.error", NULL, NULL); 
     551    static char error_name[] = "CSphereModel.error"; 
     552    CSphereModelError = PyErr_NewException(error_name, NULL, NULL); 
    552553    PyDict_SetItemString(d, "CSphereModelError", CSphereModelError); 
    553554} 
  • sansmodels/src/sans/models/c_models/CSphereSLDModel.cpp

    r00c2141 r2605da22  
    837837     
    838838    d = PyModule_GetDict(module); 
    839     CSphereSLDModelError = PyErr_NewException("CSphereSLDModel.error", NULL, NULL); 
     839    static char error_name[] = "CSphereSLDModel.error"; 
     840    CSphereSLDModelError = PyErr_NewException(error_name, NULL, NULL); 
    840841    PyDict_SetItemString(d, "CSphereSLDModelError", CSphereSLDModelError); 
    841842} 
  • sansmodels/src/sans/models/c_models/CSquareWellStructure.cpp

    r00c2141 r2605da22  
    544544     
    545545    d = PyModule_GetDict(module); 
    546     CSquareWellStructureError = PyErr_NewException("CSquareWellStructure.error", NULL, NULL); 
     546    static char error_name[] = "CSquareWellStructure.error"; 
     547    CSquareWellStructureError = PyErr_NewException(error_name, NULL, NULL); 
    547548    PyDict_SetItemString(d, "CSquareWellStructureError", CSquareWellStructureError); 
    548549} 
  • sansmodels/src/sans/models/c_models/CStackedDisksModel.cpp

    r00c2141 r2605da22  
    636636     
    637637    d = PyModule_GetDict(module); 
    638     CStackedDisksModelError = PyErr_NewException("CStackedDisksModel.error", NULL, NULL); 
     638    static char error_name[] = "CStackedDisksModel.error"; 
     639    CStackedDisksModelError = PyErr_NewException(error_name, NULL, NULL); 
    639640    PyDict_SetItemString(d, "CStackedDisksModelError", CStackedDisksModelError); 
    640641} 
  • sansmodels/src/sans/models/c_models/CStickyHSStructure.cpp

    r00c2141 r2605da22  
    544544     
    545545    d = PyModule_GetDict(module); 
    546     CStickyHSStructureError = PyErr_NewException("CStickyHSStructure.error", NULL, NULL); 
     546    static char error_name[] = "CStickyHSStructure.error"; 
     547    CStickyHSStructureError = PyErr_NewException(error_name, NULL, NULL); 
    547548    PyDict_SetItemString(d, "CStickyHSStructureError", CStickyHSStructureError); 
    548549} 
  • sansmodels/src/sans/models/c_models/CTriaxialEllipsoidModel.cpp

    r00c2141 r2605da22  
    639639     
    640640    d = PyModule_GetDict(module); 
    641     CTriaxialEllipsoidModelError = PyErr_NewException("CTriaxialEllipsoidModel.error", NULL, NULL); 
     641    static char error_name[] = "CTriaxialEllipsoidModel.error"; 
     642    CTriaxialEllipsoidModelError = PyErr_NewException(error_name, NULL, NULL); 
    642643    PyDict_SetItemString(d, "CTriaxialEllipsoidModelError", CTriaxialEllipsoidModelError); 
    643644} 
  • sansmodels/src/sans/models/c_models/CVesicleModel.cpp

    r00c2141 r2605da22  
    567567     
    568568    d = PyModule_GetDict(module); 
    569     CVesicleModelError = PyErr_NewException("CVesicleModel.error", NULL, NULL); 
     569    static char error_name[] = "CVesicleModel.error"; 
     570    CVesicleModelError = PyErr_NewException(error_name, NULL, NULL); 
    570571    PyDict_SetItemString(d, "CVesicleModelError", CVesicleModelError); 
    571572} 
  • sansmodels/src/sans/models/c_models/classTemplate.txt

    r00c2141 r2605da22  
    486486     
    487487    d = PyModule_GetDict(module); 
    488     [PYTHONCLASS]Error = PyErr_NewException("[PYTHONCLASS].error", NULL, NULL); 
     488    static char error_name[] = "[PYTHONCLASS].error"; 
     489    [PYTHONCLASS]Error = PyErr_NewException(error_name, NULL, NULL); 
    489490    PyDict_SetItemString(d, "[PYTHONCLASS]Error", [PYTHONCLASS]Error); 
    490491} 
Note: See TracChangeset for help on using the changeset viewer.