From 43f301fa730fa70dccc016750ab2a8ed5fe503e0 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Fri, 13 Feb 2026 15:59:54 +0100 Subject: [PATCH] pass std::string_view by value --- common/common.cpp | 2 +- common/common.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/common.cpp b/common/common.cpp index 615ce81c62..e6286cb071 100644 --- a/common/common.cpp +++ b/common/common.cpp @@ -1804,7 +1804,7 @@ bool common_prompt_batch_decode( const std::vector & tokens, int & n_past, int n_batch, - const std::string_view & state_path, + std::string_view state_path, bool save_state) { const int n_eval = tokens.size(); if (n_eval == 0) { diff --git a/common/common.h b/common/common.h index d7ced8a2ca..50a6b27490 100644 --- a/common/common.h +++ b/common/common.h @@ -789,7 +789,7 @@ bool common_prompt_batch_decode( const std::vector & embd, int & n_past, int n_batch, - const std::string_view & state_path, + std::string_view state_path, bool save_state); // replays the last token after loading state to regenerate logits