Diff of /src/lib/sampler/MutableSampler.cc [3b1e0e] .. [e23e50] Maximize Restore

  Switch to side-by-side view

--- a/src/lib/sampler/MutableSampler.cc
+++ b/src/lib/sampler/MutableSampler.cc
@@ -12,8 +12,9 @@
 namespace jags {
 
     MutableSampler::MutableSampler(GraphView *gv,
-			   vector<MutableSampleMethod *> const &methods)
-	: Sampler(gv), _methods(methods)
+				   vector<MutableSampleMethod *> const &methods,
+				   std::string const &name)
+	: Sampler(gv), _methods(methods), _name(name)
     {
     }
 
@@ -58,7 +59,7 @@
 
     string MutableSampler::name() const
     {
-	return _methods[0]->name();
+	return _name;
     }
 
 } //namespace jags