Changeset 8245 for trunk

Show
Ignore:
Timestamp:
28/11/11 18:55:14 (6 months ago)
Author:
westram
Message:
  • fix tests (static initialization in tests is undefined, since test itself starts via static initialization)
    • TEST_BI_ecoli_ref
    • TEST_plugin_found
Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/EDIT4/ED4_plugins.cxx

    r7623 r8245  
    113113}; 
    114114 
     115static const PlugIn *findPlugin(const char *name) { 
     116    static PlugIn registered[] = { // register plugins here 
     117        PlugIn("SECEDIT", start_SECEDIT_plugin), 
     118#if defined(ARB_OPENGL) 
     119        PlugIn("RNA3D", start_RNA3D_plugin), 
     120#endif // ARB_OPENGL 
     121    }; 
    115122 
    116 static PlugIn registered[] = { // register plugins here 
    117     PlugIn("SECEDIT", start_SECEDIT_plugin), 
    118 #if defined(ARB_OPENGL) 
    119     PlugIn("RNA3D", start_RNA3D_plugin), 
    120 #endif // ARB_OPENGL 
    121 }; 
    122  
    123 static const PlugIn *findPlugin(const char *name) { 
    124123    for (size_t plug = 0; plug<ARRAY_ELEMS(registered); ++plug) { 
    125124        if (registered[plug].has_name(name)) { 
  • trunk/SL/HELIX/BI_basepos.cxx

    r7423 r8245  
    1515 
    1616static bool is_Gap(char c) { return c == '-' || c == '.'; } 
    17 static CharPredicate pred_is_gap(is_Gap); 
    1817 
    1918// --------------------- 
     
    2120 
    2221void BasePosition::initialize(const char *seq, int size) { 
     22    static CharPredicate pred_is_gap(is_Gap); 
    2323    initialize(seq, size, pred_is_gap); 
    2424}