Fix uninitialised variable.
[ardour.git] / libs / ardour / element_importer.cc
index eb6e39d13ab643f283d905df7b6cbe39a3ce75e0..c02b841ea7081d292fc422eb3da1224e3f53e23c 100644 (file)
@@ -35,7 +35,7 @@ using namespace ARDOUR;
 sigc::signal <std::pair<bool, string>, string, string> ElementImporter::Rename;
 sigc::signal <bool, string> ElementImporter::Prompt;
 
-ElementImporter::ElementImporter (XMLTree const & source, ARDOUR::Session & session) : 
+ElementImporter::ElementImporter (XMLTree const & source, ARDOUR::Session & session) :
   source (source),
   session(session),
   _queued (false),
@@ -79,7 +79,7 @@ ElementImporter::cancel_move ()
 }
 
 string
-ElementImporter::smpte_to_string(SMPTE::Time & time) const
+ElementImporter::timecode_to_string(Timecode::Time & time) const
 {
        std::ostringstream oss;
        oss << std::setfill('0') << std::right <<
@@ -91,7 +91,7 @@ ElementImporter::smpte_to_string(SMPTE::Time & time) const
          time.seconds << ":" <<
          std::setw(2) <<
          time.frames;
-       
+
        return oss.str();
 }
 
@@ -101,7 +101,7 @@ ElementImporter::rate_convert_samples (nframes_t samples) const
        if (sample_rate == session.frame_rate()) {
                return samples;
        }
-       
+
        // +0.5 for proper rounding
        return static_cast<nframes_t> (samples * (static_cast<double> (session.nominal_frame_rate()) / sample_rate) + 0.5);
 }