From 72e0b7496d28f3c83f0a4d247390462a5237a433 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Sat, 21 Jul 2012 00:11:02 +0200 Subject: [PATCH] Use value() instead of filename() to retrieve output filename. --- src/ctbin/ctbin.cpp | 3 ++- src/ctselect/ctselect.cpp | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/ctbin/ctbin.cpp b/src/ctbin/ctbin.cpp index de35711..53095b6 100644 --- a/src/ctbin/ctbin.cpp +++ b/src/ctbin/ctbin.cpp @@ -441,7 +441,8 @@ void ctbin::get_parameters(void) // Optionally read ahead parameters so that they get correctly // dumped into the log file if (m_read_ahead) { - m_outfile = (*this)["outfile"].filename(); + m_outfile = (*this)["outfile"].value(); + m_prefix = (*this)["prefix"].value(); } // Return diff --git a/src/ctselect/ctselect.cpp b/src/ctselect/ctselect.cpp index 3dc3b20..0454b23 100644 --- a/src/ctselect/ctselect.cpp +++ b/src/ctselect/ctselect.cpp @@ -439,7 +439,8 @@ void ctselect::get_parameters(void) // Optionally read ahead parameters so that they get correctly // dumped into the log file if (m_read_ahead) { - m_outfile = (*this)["outfile"].filename(); + m_outfile = (*this)["outfile"].value(); + m_prefix = (*this)["prefix"].value(); } // Derive time interval @@ -661,7 +662,7 @@ void ctselect::init_members(void) // Initialise parameters m_infile.clear(); m_outfile.clear(); - m_infile.clear(); + m_prefix.clear(); m_ra = 0.0; m_dec = 0.0; m_rad = 0.0; @@ -697,7 +698,7 @@ void ctselect::copy_members(const ctselect& app) // Copy parameters m_infile = app.m_infile; m_outfile = app.m_outfile; - m_infile = app.m_infile; + m_prefix = app.m_prefix; m_ra = app.m_ra; m_dec = app.m_dec; m_rad = app.m_rad; -- libgit2 0.21.4