diff --git a/src/io/pifile.cpp b/src/io/pifile.cpp index de80cf33..e1701ffc 100755 --- a/src/io/pifile.cpp +++ b/src/io/pifile.cpp @@ -339,7 +339,7 @@ char PIFile::readChar() { void PIFile::setPath(const PIString & path) { PIIODevice::setPath(path); - if (isOpened()) openDevice(); + if (isOpened()) open(); } diff --git a/src/io/piiodevice.h b/src/io/piiodevice.h index 16390f55..8ebb8135 100755 --- a/src/io/piiodevice.h +++ b/src/io/piiodevice.h @@ -285,7 +285,7 @@ protected: //! Reimplement to configure device from entries "e_main" and "e_parent", cast arguments to \a PIConfig::Entry* virtual bool configureDevice(const void * e_main, const void * e_parent = 0) {return true;} - //! Reimplement to open device, return value will be set to "opened_" variable + //! Reimplement to open device, return value will be set to "opened_" variable; don't call this function in subclass, use open() virtual bool openDevice() = 0; // use path_, type_, opened_, init_ variables //! Reimplement to close device, inverse return value will be set to "opened_" variable