diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2008-07-15 12:09:11 -0500 |
---|---|---|
committer | Erik Schnetter <schnetter@cct.lsu.edu> | 2008-07-15 13:30:25 -0500 |
commit | b962688a49b6a86b1dc6d52ce28c195671fc06a6 (patch) | |
tree | 2b37a302060e11da1e2c50e3d5e499e9e68ec64d /Carpet/CarpetLib/src | |
parent | 247359a56fd552e8a9370b08b891e3f6f75e14de (diff) |
CarpetLib: Simplify gf::typed_data slightly
Diffstat (limited to 'Carpet/CarpetLib/src')
-rw-r--r-- | Carpet/CarpetLib/src/gf.hh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Carpet/CarpetLib/src/gf.hh b/Carpet/CarpetLib/src/gf.hh index 0ca125631..d5feb0a63 100644 --- a/Carpet/CarpetLib/src/gf.hh +++ b/Carpet/CarpetLib/src/gf.hh @@ -50,12 +50,14 @@ protected: virtual gdata* typed_data (int tl, int rl, int c, int ml) { + data<T>* const vl = + this->vectorleader + ? (data<T>*)(*this->vectorleader)(tl,rl,c,ml) + : NULL; return new data<T>(this->varindex, h.refcent, this->transport_operator, this->vectorlength, this->vectorindex, - this->vectorleader - ? (data<T>*)(*this->vectorleader)(tl,rl,c,ml) - : NULL); + vl); } |