diff options
Diffstat (limited to 'src/Utils.cxx')
| -rw-r--r-- | src/Utils.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Utils.cxx b/src/Utils.cxx index 27e99e5..7b41195 100644 --- a/src/Utils.cxx +++ b/src/Utils.cxx @@ -78,7 +78,8 @@ bool findResourceDir(const char* argv0, std::ostream& error) llvm::sys::path::remove_filename(dir2); // Build tree has // <build>/bin[/<config>]/castxml - if (!tryBuildDir(dir.str()) && !tryBuildDir(dir2.str())) { + if (!tryBuildDir(std::string(dir.str())) && + !tryBuildDir(std::string(dir2.str()))) { error << "Unable to locate resources for " << exe << "\n"; return false; } |
