Skip to content

Commit

Permalink
COMP: Pass saveFileName by values instead of by reference
Browse files Browse the repository at this point in the history
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]'
  • Loading branch information
dzenanz committed Aug 28, 2024
1 parent d583283 commit 9548e2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/itkIRCommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9548e2b

Please sign in to comment.