]> sigrok.org Git - pulseview.git/blobdiff - pv/devices/file.cpp
Change namespace for the trace view and implement ViewBase
[pulseview.git] / pv / devices / file.cpp
index 91f2d5d62d20e44da4b01e82027df2a6b6ee198b..f8ec998d8b7310749ac5e201979750af71f3581f 100644 (file)
@@ -26,15 +26,18 @@ namespace pv {
 namespace devices {
 
 File::File(const std::string &file_name) :
-       file_name_(file_name) {
+       file_name_(file_name)
+{
 }
 
-std::string File::full_name() const {
-       return boost::filesystem::path(file_name_).filename().string();
+std::string File::full_name() const
+{
+       return file_name_;
 }
 
-std::string File::display_name(const DeviceManager&) const {
-       return File::full_name();
+std::string File::display_name(const DeviceManager&) const
+{
+       return boost::filesystem::path(file_name_).filename().string();
 }
 
 } // namespace devices