From bfd77e1a198cbe550ad1266d65297319580077eb Mon Sep 17 00:00:00 2001 From: Stas Degteff Date: Thu, 17 Feb 2011 23:00:49 +0000 Subject: [PATCH] New C++ version for PathCopy() --- goldlib/gall/gfilutl2.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/goldlib/gall/gfilutl2.cpp b/goldlib/gall/gfilutl2.cpp index a4adcd5..480cd68 100644 --- a/goldlib/gall/gfilutl2.cpp +++ b/goldlib/gall/gfilutl2.cpp @@ -101,11 +101,17 @@ void PathCopy(std::string& dst, const char* src) { strschg_environ(dst); AddBackslash(dst); } +void PathCopy(std::string& dst, const std::string& src) { + + dst = src; + strschg_environ(dst); + AddBackslash(dst); +} // ------------------------------------------------------------------ // DOS-style enviroment variables substitution in string. -// Unix-style tilde substitution in string. +// In unix-like enviroment also tilde substitution in string. int strschg_environ(std::string& s) {