Region ctor inherits position, start and beat.
[ardour.git] / libs / midi++2 / midnam_patch.cc
index 2205e5e2a0178686aa01cd8aaf6aed56f0f35aaf..cb1e28508b93eecb397b011c8ad6219579551e85 100644 (file)
@@ -877,14 +877,15 @@ MasterDeviceNames::get_state(void)
        return nothing;
 }
 
-MIDINameDocument::MIDINameDocument (const string& filename)
+MIDINameDocument::MIDINameDocument (const string& file_path)
+       : _file_path(file_path)
 {
        XMLTree document;
-       if (!document.read (filename)) {
+       if (!document.read (file_path)) {
                throw failed_constructor ();
        }
 
-       document.set_filename (filename);
+       document.set_filename (file_path);
        set_state (document, *document.root());
 }