diff options
Diffstat (limited to 'src/script/text-io.cc')
-rw-r--r-- | src/script/text-io.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/text-io.cc b/src/script/text-io.cc index 2f5efab..65b4eed 100644 --- a/src/script/text-io.cc +++ b/src/script/text-io.cc @@ -67,7 +67,7 @@ bool ReadPotentials(const string &weight_type, // Writes vector of weights; returns true on success. bool WritePotentials(const string& filename, const vector<WeightClass>& potential) { - ostream *strm = &std::cout; + ostream *strm = &cout; if (!filename.empty()) { strm = new ofstream(filename.c_str()); if (!*strm) { @@ -85,7 +85,7 @@ bool WritePotentials(const string& filename, LOG(ERROR) << "WritePotentials: Write failed: " << (filename.empty() ? "standard output" : filename); bool ret = *strm; - if (strm != &std::cout) + if (strm != &cout) delete strm; return ret; } |