X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdevices%2Ffile.cpp;h=dc64246a9dbcefb1e600e80c12f8916487908779;hp=04c8be3792ad1ffc95d9d5139e97c25d90a7578a;hb=6f925ba9d6faf1077b73c5a5808259576081716a;hpb=00f6bae935837b38b0d03a5928ba8175d460413f diff --git a/pv/devices/file.cpp b/pv/devices/file.cpp index 04c8be3..dc64246 100644 --- a/pv/devices/file.cpp +++ b/pv/devices/file.cpp @@ -21,20 +21,22 @@ #include "file.hpp" +using std::string; + namespace pv { namespace devices { -File::File(const std::string &file_name) : +File::File(const string &file_name) : file_name_(file_name) { } -std::string File::full_name() const +string File::full_name() const { return file_name_; } -std::string File::display_name(const DeviceManager&) const +string File::display_name(const DeviceManager&) const { return boost::filesystem::path(file_name_).filename().string(); }