diff options
Diffstat (limited to 'yql/essentials/udfs/common/python/python_udf')
| -rw-r--r-- | yql/essentials/udfs/common/python/python_udf/python_udf.cpp | 6 |
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_) { |
