Skip to content

Commit 98421f9

Browse files
committed
[rfile] return const ref from FileRaii::GetPath()
1 parent b0357ff commit 98421f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

io/io/test/rfile.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class FileRaii {
3636
if (!fPreserveFile)
3737
std::remove(fPath.c_str());
3838
}
39-
std::string GetPath() const { return fPath; }
39+
const std::string &GetPath() const { return fPath; }
4040

4141
// Useful if you want to keep a test file after the test has finished running
4242
// for debugging purposes. Should only be used locally and never pushed.

0 commit comments

Comments
 (0)