summaryrefslogtreecommitdiffstats
path: root/yql/essentials/udfs/common/python/python_udf/python_udf.cpp
diff options
context:
space:
mode:
authorvitya-smirnov <[email protected]>2026-03-02 10:53:24 +0300
committervitya-smirnov <[email protected]>2026-03-02 11:32:11 +0300
commit567b9a254ca87d1071b7c359c8c463583fbf4be0 (patch)
treeb939d1de80624b73b6eada7f79df877bd99bfde5 /yql/essentials/udfs/common/python/python_udf/python_udf.cpp
parent642fd2962dceb8625a1e128db871673d09c34748 (diff)
YQL-20095: Enable modernize-pass-by-value
commit_hash:4939dfad654f18bb31e40711ee0c39063889f17b
Diffstat (limited to 'yql/essentials/udfs/common/python/python_udf/python_udf.cpp')
-rw-r--r--yql/essentials/udfs/common/python/python_udf/python_udf.cpp6
1 files changed, 4 insertions, 2 deletions
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 <util/generic/vector.h>
#include <util/system/execpath.h>
+#include <utility>
+
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_) {