From 3bb5df2f3b38ba922daddecc698528db495940a6 Mon Sep 17 00:00:00 2001 From: Damien Zammit Date: Sat, 22 Jun 2019 10:50:14 +1000 Subject: Fix erase() calls for vectors && add path getter --- ptformat/ptformat.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ptformat') diff --git a/ptformat/ptformat.h b/ptformat/ptformat.h index 4707d12..26e9dd9 100644 --- a/ptformat/ptformat.h +++ b/ptformat/ptformat.h @@ -207,6 +207,7 @@ public: uint8_t version () const { return _version; } int64_t sessionrate () const { return _sessionrate ; } + const std::string& path () { return _path; } const std::vector& audiofiles () const { return _audiofiles ; } const std::vector& regions () const { return _regions ; } @@ -225,7 +226,7 @@ private: std::vector _tracks; std::vector _miditracks; - std::string path; + std::string _path; unsigned char* _ptfunxored; uint64_t _len; -- cgit v1.2.3