diff options
author | Robin Gareus <robin@gareus.org> | 2016-02-13 01:39:41 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-02-13 01:39:41 +0100 |
commit | 108528b63df447fe64ff443ee988335d02e9a98a (patch) | |
tree | 753d1f8d8f372389dbdb80fcc817c18ce0a8d610 /libs/pbd | |
parent | d814acbb8f3b48bc1165b8012da6ed0207ddb086 (diff) |
amend d814acb - SystemExec/Export debugging
Diffstat (limited to 'libs/pbd')
-rw-r--r-- | libs/pbd/pbd/system_exec.h | 2 | ||||
-rw-r--r-- | libs/pbd/system_exec.cc | 24 |
2 files changed, 13 insertions, 13 deletions
diff --git a/libs/pbd/pbd/system_exec.h b/libs/pbd/pbd/system_exec.h index 07f7d139a7..d5b14c8273 100644 --- a/libs/pbd/pbd/system_exec.h +++ b/libs/pbd/pbd/system_exec.h @@ -115,7 +115,7 @@ class LIBPBD_API SystemExec virtual ~SystemExec (); - std::string GetString(); + std::string to_s() const; /** fork and execute the given program * diff --git a/libs/pbd/system_exec.cc b/libs/pbd/system_exec.cc index fc66e1f6e4..a19e873da2 100644 --- a/libs/pbd/system_exec.cc +++ b/libs/pbd/system_exec.cc @@ -282,18 +282,6 @@ SystemExec::make_argp_escaped(std::string command, const std::map<char, std::str argp[n] = NULL; } -string -SystemExec::GetString () -{ - stringstream out; - if (argp) { - for (int i = 0; argp[i]; ++i) { - out << argp[i]; - } - } - return out.str(); -} - SystemExec::~SystemExec () { terminate (); @@ -323,6 +311,18 @@ interposer_thread (void *arg) { return 0; } +string +SystemExec::to_s () const +{ + stringstream out; + if (argp) { + for (int i = 0; argp[i]; ++i) { + out << argp[i] << " "; + } + } + return out.str(); +} + #ifdef PLATFORM_WINDOWS /* Windows Process */ /* HELPER FUNCTIONS */ |