diff --git a/.gitignore b/.gitignore
index a1391dc..ce7d853 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,31 +2,7 @@
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
-# User-specific stuff
-.idea/**/workspace.xml
-.idea/**/tasks.xml
-.idea/**/usage.statistics.xml
-.idea/**/dictionaries
-.idea/**/shelf
-
-# AWS User-specific
-.idea/**/aws.xml
-
-# Generated files
-.idea/**/contentModel.xml
-
-# Sensitive or high-churn files
-.idea/**/dataSources/
-.idea/**/dataSources.ids
-.idea/**/dataSources.local.xml
-.idea/**/sqlDataSources.xml
-.idea/**/dynamic.xml
-.idea/**/uiDesigner.xml
-.idea/**/dbnavigator.xml
-
-# Gradle
-.idea/**/gradle.xml
-.idea/**/libraries
+.idea
# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
@@ -59,9 +35,6 @@ out/
# JIRA plugin
atlassian-ide-plugin.xml
-# Cursive Clojure plugin
-.idea/replstate.xml
-
# SonarLint plugin
.idea/sonarlint/
@@ -71,12 +44,6 @@ crashlytics.properties
crashlytics-build.properties
fabric.properties
-# Editor-based Rest Client
-.idea/httpRequests
-
-# Android studio 3.1+ serialized cache file
-.idea/caches/build_file_checksums.ser
-
# ---> C++
# Prerequisites
*.d
diff --git a/.idea/cpp_stl.iml b/.idea/cpp_stl.iml
deleted file mode 100644
index f08604b..0000000
--- a/.idea/cpp_stl.iml
+++ /dev/null
@@ -1,2 +0,0 @@
-
-
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
deleted file mode 100644
index 79b3c94..0000000
--- a/.idea/misc.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
deleted file mode 100644
index 732d01b..0000000
--- a/.idea/modules.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
deleted file mode 100644
index 94a25f7..0000000
--- a/.idea/vcs.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Personnage/Kenny.cpp b/Personnage/Kenny.cpp
index 76f2655..3e904ad 100644
--- a/Personnage/Kenny.cpp
+++ b/Personnage/Kenny.cpp
@@ -12,10 +12,3 @@ void Kenny::parler(const string &message) const
cout << "MMmmmhhmmmm" << endl;
}
-Kenny::Kenny() : Kenny("Kenny", "huh?")
-{}
-
-Kenny::Kenny(const std::string &name,
- const std::string &pv)
- : Personnage(name, pv)
-{}
diff --git a/Personnage/Kenny.h b/Personnage/Kenny.h
index 8f2731d..cf282bb 100644
--- a/Personnage/Kenny.h
+++ b/Personnage/Kenny.h
@@ -12,11 +12,7 @@ class Kenny : public Personnage
{
public:
void parler(const std::string &message) const override;
-
- Kenny();
-
- Kenny(const std::string &name,
- const std::string &pv);
+ using Personnage::Personnage;
};
diff --git a/Personnage/Personnage.cpp b/Personnage/Personnage.cpp
index 2dc40ae..7d91880 100644
--- a/Personnage/Personnage.cpp
+++ b/Personnage/Personnage.cpp
@@ -11,10 +11,6 @@ void Personnage::parler(const string &message) const
cout << message << endl;
}
-Personnage::Personnage()
- : Personnage("FNU", "wat")
-{}
-
Personnage::Personnage(const std::string &name,
const std::string &pv)
: m_name(name), m_pv(pv)
@@ -24,3 +20,6 @@ const string &Personnage::name() const
{
return m_name;
}
+
+Personnage::~Personnage()
+= default;
diff --git a/Personnage/Personnage.h b/Personnage/Personnage.h
index 1b2567d..3c26795 100644
--- a/Personnage/Personnage.h
+++ b/Personnage/Personnage.h
@@ -17,10 +17,10 @@ public:
const std::string &name() const;
- Personnage();
+ explicit Personnage(const std::string &name = "FNU",
+ const std::string &pv = "wat");
- Personnage(const std::string &name,
- const std::string &pv);
+ virtual ~Personnage();
};