Skip to content

Commit

Permalink
Fixed lambda capture
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-Bingham committed May 7, 2024
1 parent ce5d2d0 commit 8defaa6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/testapp/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ using namespace testapp;
*
* CLI -> Command line interface
*/
void cli_loop(int& argc, char** argv);
void cli_loop(int argc, char** argv);

/**
* @brief Starts Magnum application (MagnumApplication) thread g_magnumThread
*
* This initializes an OpenGL context, and opens the window
*/
void start_magnum_async(int& argc, char** argv);
void start_magnum_async(int argc, char** argv);

/**
* @brief As the name implies
Expand Down Expand Up @@ -169,7 +169,7 @@ int main(int argc, char** argv)
return 0;
}

void cli_loop(int& argc, char** argv)
void cli_loop(int argc, char** argv)
{
print_help();

Expand Down Expand Up @@ -255,13 +255,13 @@ void cli_loop(int& argc, char** argv)
g_testApp.clear_resource_owners();
}

void start_magnum_async(int& argc, char** argv)
void start_magnum_async(int argc, char** argv)
{
if (g_magnumThread.joinable())
{
g_magnumThread.join();
}
std::thread t([&argc, argv] {
std::thread t([argc, argv] () mutable {
osp::set_thread_logger(g_logMagnumApp);

// Start Magnum application session
Expand Down

0 comments on commit 8defaa6

Please sign in to comment.