From 567b9a254ca87d1071b7c359c8c463583fbf4be0 Mon Sep 17 00:00:00 2001 From: vitya-smirnov Date: Mon, 2 Mar 2026 10:53:24 +0300 Subject: YQL-20095: Enable modernize-pass-by-value commit_hash:4939dfad654f18bb31e40711ee0c39063889f17b --- yql/essentials/udfs/common/python/python_udf/python_udf.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'yql/essentials/udfs/common/python/python_udf/python_udf.cpp') diff --git a/yql/essentials/udfs/common/python/python_udf/python_udf.cpp b/yql/essentials/udfs/common/python/python_udf/python_udf.cpp index a70e69a3257..3dedc41137f 100644 --- a/yql/essentials/udfs/common/python/python_udf/python_udf.cpp +++ b/yql/essentials/udfs/common/python/python_udf/python_udf.cpp @@ -7,6 +7,8 @@ #include #include +#include + namespace { #if PY_MAJOR_VERSION >= 3 @@ -49,8 +51,8 @@ void InitArcadiaPythonRuntime() ////////////////////////////////////////////////////////////////////////////// class TPythonModule: public IUdfModule { public: - TPythonModule(const TString& resourceName, EPythonFlavor pythonFlavor, bool standalone = true) - : ResourceName_(resourceName) + TPythonModule(TString resourceName, EPythonFlavor pythonFlavor, bool standalone = true) + : ResourceName_(std::move(resourceName)) , Standalone_(standalone) { if (Standalone_) { -- cgit v1.3