Skip to content

Commit 98a60a7

Browse files
committed
Remove instances of weird string(ptr).c_str() pattern
1 parent f9ca285 commit 98a60a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/src/main.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ int main(int argc, const char *argv[])
6363
string filter(argv[2]);
6464

6565
if (argc > 4) {
66-
freopen(string(argv[3]).c_str(), "w", stdout);
67-
freopen(string(argv[4]).c_str(), "w", stderr);
66+
freopen(argv[3], "w", stdout);
67+
freopen(argv[4], "w", stderr);
6868

6969
// rw-rw-rw-
7070
mode_t mode = S_IFREG |

0 commit comments

Comments
 (0)