[Debian-astro-commits] [gyoto] 79/221: Only call setParameters in template subcontractors if fmp in not NULL
Thibaut Jean-Claude Paumard
thibaut at moszumanska.debian.org
Fri May 22 20:52:35 UTC 2015
This is an automated email from the git hooks/post-receive script.
thibaut pushed a commit to branch master
in repository gyoto.
commit 72464f30fe3113a3f187e675e7a71bfa30113e5b
Author: Thibaut Paumard <paumard at users.sourceforge.net>
Date: Sat Nov 1 17:51:46 2014 +0100
Only call setParameters in template subcontractors if fmp in not NULL
---
include/GyotoAstrobj.h | 2 +-
include/GyotoMetric.h | 2 +-
include/GyotoSpectrum.h | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/GyotoAstrobj.h b/include/GyotoAstrobj.h
index 64408dd..0c0b03f 100644
--- a/include/GyotoAstrobj.h
+++ b/include/GyotoAstrobj.h
@@ -75,7 +75,7 @@ namespace Gyoto{
(FactoryMessenger* fmp) {
SmartPointer<T> ao = new T();
#ifdef GYOTO_USE_XERCES
- ao -> setParameters(fmp);
+ if (fmp) ao -> setParameters(fmp);
#endif
return ao;
}
diff --git a/include/GyotoMetric.h b/include/GyotoMetric.h
index a0af6b3..d5880f1 100644
--- a/include/GyotoMetric.h
+++ b/include/GyotoMetric.h
@@ -69,7 +69,7 @@ namespace Gyoto {
(FactoryMessenger* fmp) {
SmartPointer<T> gg = new T();
#ifdef GYOTO_USE_XERCES
- gg -> setParameters(fmp);
+ if (fmp) gg -> setParameters(fmp);
#endif
return gg;
}
diff --git a/include/GyotoSpectrum.h b/include/GyotoSpectrum.h
index afc8a2c..e4de1af 100644
--- a/include/GyotoSpectrum.h
+++ b/include/GyotoSpectrum.h
@@ -62,7 +62,7 @@ namespace Gyoto{
(FactoryMessenger* fmp) {
SmartPointer<T> sp = new T();
#ifdef GYOTO_USE_XERCES
- sp -> setParameters(fmp);
+ if (fmp) sp -> setParameters(fmp);
#endif
return sp;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/gyoto.git
More information about the Debian-astro-commits
mailing list