Changeset 922 for XIOS


Ignore:
Timestamp:
08/23/16 17:34:48 (8 years ago)
Author:
mhnguyen
Message:

Correcting compilation error with gcc 4.8

+) Remove some part which made gcc complain

Test
+) Compilation OK

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/declare_ref_func.hpp

    r921 r922  
    1818  bool hasDirect##type##Reference(void) const;              \ 
    1919  C##type* getDirect##type##Reference(void) const;          \ 
    20   const StdString& get##type##OutputName(void) const;       \ 
    21   void setAttributesReference(bool apply = true);       \ 
     20  const StdString& get##type##OutputName(void) const;        \ 
     21  void setAttributesReference(bool apply = true);           \ 
    2222                                                                       \ 
    2323private:                                                               \ 
     
    8989{                                                                      \ 
    9090  if (!this->name.isEmpty())                                           \ 
    91     return this->name;                                                 \     
     91    return this->name;                                                 \ 
    9292  else if (hasDirect##type##Reference())                               \ 
    9393  {                                                                    \ 
     
    9595    StdString nameRef = this->name_##_ref;                             \ 
    9696    while (refer_ptr->hasAutoGeneratedId() &&                          \ 
    97           (C##type::has(nameRef)))                                     \              
    98     {                                                                  \                                                             
     97          (C##type::has(nameRef)))                                     \ 
     98    {                                                                  \ 
    9999      tmp_ptr = refer_ptr;                                             \ 
    100100      refer_ptr = tmp_ptr->getDirect##type##Reference();               \ 
    101       nameRef = (refer_ptr->hasDirect##type##Reference())              \ 
    102                  ? refer_ptr->name_##_ref : nameRef;                   \ 
    103     }                                                                  \     
     101      if (refer_ptr->hasDirect##type##Reference())                     \ 
     102        nameRef = refer_ptr->name_##_ref;                              \ 
     103    }                                                                  \ 
    104104    return refer_ptr->name_##_ref;                                     \ 
    105105  }                                                                    \ 
Note: See TracChangeset for help on using the changeset viewer.