Skip to content

Commit ac70315

Browse files
committed
Fix compilation
1 parent 4de3348 commit ac70315

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sofa/framework/Helper/src/sofa/helper/system/FileSystem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ bool FileSystem::openFileWithDefaultApplication(const std::string& filename)
524524
success = true;
525525
#elif defined(__APPLE__)
526526
pid_t pid; // points to a buffer that is used to return the process ID of the new child process.
527-
char* argv[] = {const_cast<char*>("open"), vconst_cast<char*>(filename.c_str()), nullptr};
527+
char* argv[] = {const_cast<char*>("open"), const_cast<char*>(filename.c_str()), nullptr};
528528
if (posix_spawn(&pid, "/usr/bin/open", nullptr, nullptr, argv, environ) == 0)
529529
{
530530
int status;

0 commit comments

Comments
 (0)