diff --git a/spice/WritePathSpice.cc b/spice/WritePathSpice.cc index 842b2620..1b90af87 100644 --- a/spice/WritePathSpice.cc +++ b/spice/WritePathSpice.cc @@ -193,7 +193,7 @@ WritePathSpice::WritePathSpice(const Path *path, void WritePathSpice::writeSpice() { - spice_stream_.open(std::string(spice_filename_)); + spice_stream_.open(spice_filename_); if (spice_stream_.is_open()) { path_expanded_.expand(path_, true); // Find subckt port names as a side-effect of writeSubckts. diff --git a/spice/WriteSpice.hh b/spice/WriteSpice.hh index 5230b72b..a1fd64a3 100644 --- a/spice/WriteSpice.hh +++ b/spice/WriteSpice.hh @@ -165,12 +165,12 @@ protected: std::string replaceFileExt(std::string_view filename, std::string_view ext); - const std::string_view spice_filename_; - const std::string_view subckt_filename_; - const std::string_view lib_subckt_filename_; - const std::string_view model_filename_; - const std::string_view power_name_; - const std::string_view gnd_name_; + const std::string spice_filename_; + const std::string subckt_filename_; + const std::string lib_subckt_filename_; + const std::string model_filename_; + const std::string power_name_; + const std::string gnd_name_; CircuitSim ckt_sim_; const Scene *scene_; const MinMax *min_max_;