Skip to content

Commit ae315d7

Browse files
committed
Return std::string instead of const char* from GetTempFs/GetRootSys
It makes usage simpler (e.g. std::string has operator+).
1 parent fb8f4dc commit ae315d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/rootbench/RBConfig.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ namespace RB {
1212
///
1313
///\returns invalid path if the variable is not set.
1414
///
15-
const char* GetTempFs() {
15+
std::string GetTempFs() {
1616
if (char* tempfs = std::getenv("RB_TEMP_FS"))
1717
return tempfs;
1818

1919
rb_abort("Please set the RB_TEMP_FS env variable!");
2020
}
2121

22-
const char* GetRootSys() {
22+
std::string GetRootSys() {
2323
if (char* rootsys = std::getenv("ROOTSYS"))
2424
return rootsys;
2525

0 commit comments

Comments
 (0)