Skip to content

Commit

Permalink
Add const
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake-Madden committed Nov 3, 2024
1 parent 2af4bca commit 5e9d64b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/i18n_review.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1813,7 +1813,7 @@ namespace i18n_check
}

//--------------------------------------------------
std::wstring i18n_review::collapse_multipart_string(std::wstring& str)
std::wstring i18n_review::collapse_multipart_string(std::wstring& str) const
{
// for strings that span multiple lines, remove the start/end quotes and newlines
// between them, combining this into one string
Expand Down
2 changes: 1 addition & 1 deletion src/i18n_review.h
Original file line number Diff line number Diff line change
Expand Up @@ -963,7 +963,7 @@ namespace i18n_check
/// @param str The string to collapse.
/// @returns The collapsed string.
[[nodiscard]]
std::wstring collapse_multipart_string(std::wstring& str);
std::wstring collapse_multipart_string(std::wstring& str) const;

/// @brief Collapses non-raw strings that are multiline.
void process_strings();
Expand Down

0 comments on commit 5e9d64b

Please sign in to comment.