summaryrefslogtreecommitdiffstats
path: root/runtime/base/unix_file/fd_file.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/base/unix_file/fd_file.h')
-rw-r--r--runtime/base/unix_file/fd_file.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/base/unix_file/fd_file.h b/runtime/base/unix_file/fd_file.h
index 79a0db9..19e3511 100644
--- a/runtime/base/unix_file/fd_file.h
+++ b/runtime/base/unix_file/fd_file.h
@@ -57,7 +57,9 @@ class FdFile : public RandomAccessFile {
// Bonus API.
int Fd() const;
bool IsOpened() const;
- std::string GetPath() const;
+ const std::string& GetPath() const {
+ return file_path_;
+ }
void DisableAutoClose();
bool ReadFully(void* buffer, int64_t byte_count);
bool WriteFully(const void* buffer, int64_t byte_count);