From 09bfd2547575df47358da92f98db01bb74dd5e38 Mon Sep 17 00:00:00 2001 From: Ben-Bingham Date: Tue, 7 May 2024 15:34:20 -0600 Subject: [PATCH] Made arguments take (and store) in argc by value instead of reference --- src/Magnum/Platform/Sdl2Application.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Magnum/Platform/Sdl2Application.h b/src/Magnum/Platform/Sdl2Application.h index 9026dec4d1..c527a40ef3 100644 --- a/src/Magnum/Platform/Sdl2Application.h +++ b/src/Magnum/Platform/Sdl2Application.h @@ -484,9 +484,9 @@ class Sdl2Application { /** @brief Application arguments */ struct Arguments { /** @brief Constructor */ - /*implicit*/ constexpr Arguments(int& argc, char** argv) noexcept: argc{argc}, argv{argv} {} + /*implicit*/ constexpr Arguments(int argc, char** argv) noexcept: argc{argc}, argv{argv} {} - int& argc; /**< @brief Argument count */ + int argc; /**< @brief Argument count */ char** argv; /**< @brief Argument values */ };