File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 77
88#include " pxr/base/arch/darwin.h"
99#import < Foundation/Foundation.h>
10- #include < string>
1110
1211PXR_NAMESPACE_OPEN_SCOPE
1312
1413
1514const char * Arch_DarwinGetTemporaryDirectory () {
16- std::string tmpDir = [NSTemporaryDirectory () UTF8String ];
17- return tmpDir.c_str ();
15+ return [NSTemporaryDirectory () UTF8String ];
1816}
1917
2018PXR_NAMESPACE_CLOSE_SCOPE
Original file line number Diff line number Diff line change @@ -736,7 +736,7 @@ Arch_InitTmpDir()
736736 _TmpDir = _strdup (ArchWindowsUtf16ToUtf8 (tmpPath).c_str ());
737737#elif defined(ARCH_OS_DARWIN)
738738 // On Apple platforms, we use the system APIs to get the designated temp directory
739- _TmpDir = Arch_DarwinGetTemporaryDirectory ();
739+ _TmpDir = strdup ( Arch_DarwinGetTemporaryDirectory () );
740740#else
741741 const std::string tmpdir = ArchGetEnv (" TMPDIR" );
742742 if (!tmpdir.empty ()) {
You can’t perform that action at this time.
0 commit comments