[v1,1/2] ipa: libipa: lsc: interpolateComponents(): Avoid copy
diff mbox series

Message ID 20260922155035.235817-1-barnabas.pocze@ideasonboard.com
State New
Headers show
Series
  • [v1,1/2] ipa: libipa: lsc: interpolateComponents(): Avoid copy
Related show

Commit Message

Barnabás Pőcze Sept. 22, 2026, 3:50 p.m. UTC
Return the reference directly that is returned by the interpolator.

Signed-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>
---
 src/ipa/libipa/lsc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/src/ipa/libipa/lsc.h b/src/ipa/libipa/lsc.h
index 17d5a4a141..ad378cc6ce 100644
--- a/src/ipa/libipa/lsc.h
+++ b/src/ipa/libipa/lsc.h
@@ -118,7 +118,7 @@  public:
 		return 0;
 	}
 
-	const Components interpolateComponents(unsigned int ct)
+	const Components &interpolateComponents(unsigned int ct)
 	{
 		return sets_.getInterpolated(ct);
 	}