Commit 8dd81116 authored by Pavel Vainerman's avatar Pavel Vainerman

(codegen): ещё небольшая оптимизация (cppcheck)

parent 73b724ef
......@@ -553,7 +553,7 @@ end_private(false)
}
// -----------------------------------------------------------------------------
// ( val, confval, default val )
static const std::string init3_str(const std::string s1, const std::string s2, const std::string s3 )
static const std::string init3_str(const std::string& s1, const std::string& s2, const std::string& s3 )
{
if( !s1.empty() )
return s1;
......@@ -872,7 +872,7 @@ void <xsl:value-of select="$CLASSNAME"/>_SK::testMode( bool _state )
<xsl:template name="COMMON-CC-ALONE-FUNCS">
// -----------------------------------------------------------------------------
// ( val, confval, default val )
static const std::string init3_str(const std::string s1, const std::string s2, const std::string s3 )
static const std::string init3_str(const std::string& s1, const std::string& s2, const std::string& s3 )
{
if( !s1.empty() )
return s1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment