Improved constness of local variables.

This commit is contained in:
Alexander Shaduri committed 2024-03-11 15:25:14 +04:00
1 parent 29555ed584
commit 3c4a740759
20 files changed
+65 -60

No files matched your search

+2 -2
View File
@@ -24,7 +24,7 @@ int main()
GPid pid = {};
int fd_stdout = 0, fd_stderr = 0;
std::string cmd = "iexplore";
const std::string cmd = "iexplore";
// std::vector<std::string> child_argv = Glib::shell_parse_argv(cmd);
gchar* curr_dir = g_get_current_dir();
@@ -54,7 +54,7 @@ int main()
#endif
// blocking writes if the pipe is full helps for small-pipe systems (see man 7 pipe).
int channel_flags = ~G_IO_FLAG_NONBLOCK;
const int channel_flags = ~G_IO_FLAG_NONBLOCK;
if (channel_stdout) {
g_io_channel_set_encoding(channel_stdout, nullptr, nullptr); // binary IO