X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fdevices%2Fsessionfile.cpp;h=1e8c3acda039f3184e32e701972f16b7f5617bfd;hb=53bb2e1de75f5cca9244efc83c4e77a222e322f4;hp=e6920ff5e299a6a5b5e437b2768d3d020549f2e0;hpb=4d6c6ea3e6b069787c270d4911083dae05eae4c6;p=pulseview.git
diff --git a/pv/devices/sessionfile.cpp b/pv/devices/sessionfile.cpp
index e6920ff..1e8c3ac 100644
--- a/pv/devices/sessionfile.cpp
+++ b/pv/devices/sessionfile.cpp
@@ -14,8 +14,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ * along with this program; if not, see .
*/
#include
@@ -30,10 +29,12 @@ namespace devices {
SessionFile::SessionFile(const std::shared_ptr context,
const std::string &file_name) :
File(file_name),
- context_(context) {
+ context_(context)
+{
}
-void SessionFile::open() {
+void SessionFile::open()
+{
if (session_)
close();
@@ -41,7 +42,8 @@ void SessionFile::open() {
device_ = session_->devices()[0];
}
-void SessionFile::close() {
+void SessionFile::close()
+{
if (session_)
session_->remove_devices();
}