X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/e72c1c2eb48b7ecbf8138cef0d1640a109041f08..cf75e935fef989adf6958d77d1cf69ee4bbec57b:/vim/ultisnips/cpp.snippets diff --git a/vim/ultisnips/cpp.snippets b/vim/ultisnips/cpp.snippets index 9a959b8..372600d 100644 --- a/vim/ultisnips/cpp.snippets +++ b/vim/ultisnips/cpp.snippets @@ -16,7 +16,7 @@ snippet cl "class .. (class)" b class ${1:`!p snip.rv = snip.basename or "name"`} { public: - ${1/(\w+).*/$1/}(${2:arguments}) = default; + ${1/(\w+).*/$1/}(${2}) = default; virtual ~${1/(\w+).*/$1/}() = default; private: @@ -27,9 +27,9 @@ endsnippet snippet rule5 "Default constructors/destructors/operaters" b ${1:classname}() = default; ~$1() = default; -$1(const $1 &) = default; +$1($1 const &) = default; $1($1 &&) = default; -$1 &operator=(const $1 &) = default; +$1 &operator=($1 const &) = default; $1 &operator=($1 &&) = default; endsnippet