Skip to content

Commit

Permalink
safer C++ casting
Browse files Browse the repository at this point in the history
  • Loading branch information
Master811129 committed Apr 28, 2023
1 parent dec714b commit 5c7924f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ int main (int argc, char **argv)
//Gempyre::set_debug();
mywindow w(Resourcesh,"index.html","Ahang",1152,648);
//Qt6 is a bit quirky when it comes to wayland so i disabled it
putenv((char *)("QT_QPA_PLATFORM=xcb"));
putenv(const_cast<char *>("QT_QPA_PLATFORM=xcb"));
//TODO maybe an icon manager?
w.run();
std::cout << "Back To main():\nCleaning up\n";
Expand Down

0 comments on commit 5c7924f

Please sign in to comment.