summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorTim Foley <tfoleyNV@users.noreply.github.com>2017-06-29 14:16:38 -0700
committerGitHub <noreply@github.com>2017-06-29 14:16:38 -0700
commitb2b08679a32506d629df84730f36639dab9f9593 (patch)
treee9aad4ff9a6111d828ae2e4b217dc8145cda56dd /tools
parent16613ed981fc5dc38966f5108e85b1aee36ef92f (diff)
parentf4d900dfb64d95f121dd8565dd269be061ef8509 (diff)
Merge pull request #51 from tfoleyNV/refptr-string-cleanup
Overhaul `RefPtr` and `String`
Diffstat (limited to 'tools')
-rw-r--r--tools/slang-test/main.cpp4
-rw-r--r--tools/slang-test/os.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/tools/slang-test/main.cpp b/tools/slang-test/main.cpp
index 7a0cac3ce..2bca2f78d 100644
--- a/tools/slang-test/main.cpp
+++ b/tools/slang-test/main.cpp
@@ -548,7 +548,7 @@ OSError spawnAndWait(String testPath, OSProcessSpawner& spawner)
{
if( options.shouldBeVerbose )
{
- fprintf(stderr, "%s\n", spawner.commandLine_.Buffer());
+ fprintf(stderr, "%s\n", spawner.commandLine_.ToString().begin());
}
OSError err = spawner.spawnAndWaitForCompletion();
@@ -1149,7 +1149,7 @@ void handleTestResult(
break;
}
- printf("%s test: '%S'\n", resultString, testName.ToWString());
+ printf("%s test: '%S'\n", resultString, testName.ToWString().begin());
}
break;
diff --git a/tools/slang-test/os.cpp b/tools/slang-test/os.cpp
index 63db4f9ad..40fd8afff 100644
--- a/tools/slang-test/os.cpp
+++ b/tools/slang-test/os.cpp
@@ -314,8 +314,8 @@ OSError OSProcessSpawner::spawnAndWaitForCompletion()
// `CreateProcess` requires write access to this, for some reason...
BOOL success = CreateProcessW(
- isExecutablePath_ ? executableName_.ToWString() : nullptr,
- (LPWSTR)commandLine_.ToString().ToWString(),
+ isExecutablePath_ ? executableName_.ToWString().begin() : nullptr,
+ (LPWSTR)commandLine_.ToString().ToWString().begin(),
nullptr,
nullptr,
true,