Remove initializing stringstream reference. (#4788)
This commit is contained in:
parent
c81238b5c4
commit
c358d95c44
@ -457,12 +457,11 @@ DMLC_REGISTER_PARAMETER(GraphvizParam);
|
|||||||
|
|
||||||
class GraphvizGenerator : public TreeGenerator {
|
class GraphvizGenerator : public TreeGenerator {
|
||||||
using SuperT = TreeGenerator;
|
using SuperT = TreeGenerator;
|
||||||
std::stringstream& ss_;
|
|
||||||
GraphvizParam param_;
|
GraphvizParam param_;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
GraphvizGenerator(FeatureMap const& fmap, std::string const& attrs, bool with_stats) :
|
GraphvizGenerator(FeatureMap const& fmap, std::string const& attrs, bool with_stats) :
|
||||||
TreeGenerator(fmap, with_stats), ss_{SuperT::ss_} {
|
TreeGenerator(fmap, with_stats) {
|
||||||
param_.InitAllowUnknown(std::map<std::string, std::string>{});
|
param_.InitAllowUnknown(std::map<std::string, std::string>{});
|
||||||
using KwArg = std::map<std::string, std::map<std::string, std::string>>;
|
using KwArg = std::map<std::string, std::map<std::string, std::string>>;
|
||||||
KwArg kwargs;
|
KwArg kwargs;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user