From 9548e2bbdcbd22677af191f2c21f51c090217317 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C5=BEenan=20Zuki=C4=87?= Date: Wed, 28 Aug 2024 15:50:22 -0400 Subject: [PATCH] COMP: Pass saveFileName by values instead of by reference On clangCL toolset for Visual Studio 2022 it causes the following error: M:\Dev\Nornir\ITKNornir\include\itkIRCommon.h(4115,29): error : non-const lvalue reference to type 'the_text_t' cannot bind to a value of unrelated type 'const char[1]' --- include/itkIRCommon.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/itkIRCommon.h b/include/itkIRCommon.h index da554c2..25f0f20 100644 --- a/include/itkIRCommon.h +++ b/include/itkIRCommon.h @@ -4112,7 +4112,7 @@ class assemble_mosaic_transaction_t : public the_transaction_t const feathering_t feathering = FEATHER_NONE_E, typename IMG::PixelType background = 255.0, OUTPUT * output = NULL, - the_text_t & saveFileName = "") + the_text_t saveFileName = "") : // If we should save the image to disk, use this filename m_num_threads(num_threads) , m_assemble_mosaic_mask(assemble_mosaic_mask)