[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kate] addons/kate/pate/src/plugins/expand/templates: do not add a 0 number if the only parameter re
From:       Alex Turbov <i.zaufi () gmail ! com>
Date:       2014-02-01 4:03:40
Message-ID: E1W9Rnw-0002hT-PG () scm ! kde ! org
[Download RAW message or body]

Git commit 5621560d23bae40ac4e89c37cb4bd04de6ae6f19 by Alex Turbov.
Committed on 01/02/2014 at 04:03.
Pushed by turbov into branch 'master'.

do not add a 0 number if the only parameter requrested

M  +1    -1    addons/kate/pate/src/plugins/expand/templates/function.cpp.t=
pl

http://commits.kde.org/kate/5621560d23bae40ac4e89c37cb4bd04de6ae6f19

diff --git a/addons/kate/pate/src/plugins/expand/templates/function.cpp.tpl=
 b/addons/kate/pate/src/plugins/expand/templates/function.cpp.tpl
index 61752fa..51b360a 100644
--- a/addons/kate/pate/src/plugins/expand/templates/function.cpp.tpl
+++ b/addons/kate/pate/src/plugins/expand/templates/function.cpp.tpl
@@ -1,5 +1,5 @@
 //# kate: hl C++
-/*%- if template -%*/template </*%- for p in range(0, template_arity) -%*/=
/*%- if not loop.first -%*/, /*% endif -%*/typename ${T/*< p >*/}/*%- endfo=
r -%*/>/*< nl >*//*%- endif -%*/
+/*%- if template -%*/template </*%- for p in range(0, template_arity) -%*/=
/*%- if not loop.first -%*/, /*% endif -%*/typename ${T/*%- if 1 < template=
_arity -%*//*< p >*//*%- endif -%*/}/*%- endfor -%*/>/*< nl >*//*%- endif -=
%*/
 /*< inline >*//*< static >*//*< virtual >*/${void} ${name}(/*%- if 0 < ari=
ty -%*/
 /*%- for p in range(0, arity) -%*//*%- if not loop.first -%*/, /*% endif -=
%*/${param/*< p >*/}/*%- endfor -%*/
 /*%- endif -%*/)/*< const >*//*< final >*//*< override >*//*< pure >*//*%-=
 if br %*/
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic