projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MainBar: Correct event handler name
[pulseview.git]
/
pv
/
devices
/
sessionfile.cpp
diff --git
a/pv/devices/sessionfile.cpp
b/pv/devices/sessionfile.cpp
index e6920ff5e299a6a5b5e437b2768d3d020549f2e0..8a583eeba0ffb08b8015da6fd5f6890d77488c7f 100644
(file)
--- a/
pv/devices/sessionfile.cpp
+++ b/
pv/devices/sessionfile.cpp
@@
-30,10
+30,12
@@
namespace devices {
SessionFile::SessionFile(const std::shared_ptr<sigrok::Context> context,
const std::string &file_name) :
File(file_name),
SessionFile::SessionFile(const std::shared_ptr<sigrok::Context> context,
const std::string &file_name) :
File(file_name),
- context_(context) {
+ context_(context)
+{
}
}
-void SessionFile::open() {
+void SessionFile::open()
+{
if (session_)
close();
if (session_)
close();
@@
-41,7
+43,8
@@
void SessionFile::open() {
device_ = session_->devices()[0];
}
device_ = session_->devices()[0];
}
-void SessionFile::close() {
+void SessionFile::close()
+{
if (session_)
session_->remove_devices();
}
if (session_)
session_->remove_devices();
}