Jelajahi Sumber

Modify Template for align call function on cpp file

Etheram68 5 tahun lalu
induk
melakukan
30d53757b5
3 mengubah file dengan 5 tambahan dan 2 penghapusan
  1. 3 0
      README.md
  2. 1 1
      package.json
  3. 1 1
      src/template.ts

+ 3 - 0
README.md

@@ -39,6 +39,9 @@ To report a bug or ask for a feature, please open a [Github issue](https://githu
 
 ## Release Notes
 
+### 0.2.3
+Modify template for align call function on cpp file
+
 ### 0.2.1 / 0.2.2
 Add gif Tuto, and modify template
 

+ 1 - 1
package.json

@@ -2,7 +2,7 @@
 	"name": "canonicalclasscpp",
 	"displayName": "42 Canonical Class CPP",
 	"description": "This extension is to automatically create a canonical hpp and cpp file",
-	"version": "0.2.2",
+	"version": "0.2.3",
 	"publisher": "frfreyCanonicalClassCPP",
 	"icon": "42.png",
 	"repository": {

+ 1 - 1
src/template.ts

@@ -32,7 +32,7 @@ export const getTemplate = ( name: string | undefined, filePathCpp: vscode.Uri ,
 						"	std::cout << \"Copy constructor called\" << std::endl;\n" +
 						"	*this = src;\n}\n\n" +
 						name + "::~" + name + "()\n{\n	std::cout << \"Destructor called\" << std::endl;\n}\n\n" +
-						name + " &		" + name + "::operator=( " + name + " const & rhs )\n{\n	//if ( this != &rhs )\n" +
+						name + " &				" + name + "::operator=( " + name + " const & rhs )\n{\n	//if ( this != &rhs )\n" +
 						"		//this->_value = rhs.getValue();\n" +
 						"	return *this;\n}\n\n" +
 						"std::ostream &		operator<<( std::ostream & o, " + name + " const & i )\n" +