From 2968336898d822d0882a6aa59157d578c255fa65 Mon Sep 17 00:00:00 2001 From: vil02 Date: Sun, 28 Jan 2024 10:25:18 +0100 Subject: [PATCH] style: use const reference when decoding `std::vector` --- api/utf16.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/utf16.hpp b/api/utf16.hpp index e69c09cb6..ded5cd65f 100644 --- a/api/utf16.hpp +++ b/api/utf16.hpp @@ -32,7 +32,7 @@ namespace jule constexpr signed int UTF16_MAX_RUNE = 1114111; inline jule::I32 utf16_decode_rune(const jule::I32 r1, const jule::I32 r2) noexcept; - std::vector utf16_decode(const std::vector s); + std::vector utf16_decode(const std::vector &s); std::vector utf8_to_runes(const std::string &s) noexcept; std::string utf16_to_utf8_str(const wchar_t *wstr, const std::size_t len); std::tuple utf16_encode_rune(jule::I32 r);