X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdevices%2Ffile.cpp;h=dc64246a9dbcefb1e600e80c12f8916487908779;hp=04c8be3792ad1ffc95d9d5139e97c25d90a7578a;hb=f4ab4b5c657e5613caba82feaa81a8a400e4f331;hpb=efdec55aec1a137460fa362a381ed1904182bfed 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(); }