summaryrefslogtreecommitdiff
path: root/src/utils/smart_string.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-02-14 18:18:38 +0100
committerHampusM <hampus@hampusmat.com>2022-02-14 18:18:38 +0100
commit01ce0af940bd69c94a2fac8b65219262845cca98 (patch)
tree97c443782ce1cfba90b205183c8aab1e3edb0bb3 /src/utils/smart_string.hpp
parentcb7a167c7dee2fa1a19bd09ede3bae8b140e79da (diff)
refactor: clean sewage
Diffstat (limited to 'src/utils/smart_string.hpp')
-rw-r--r--src/utils/smart_string.hpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/utils/smart_string.hpp b/src/utils/smart_string.hpp
index fcaff98..6390465 100644
--- a/src/utils/smart_string.hpp
+++ b/src/utils/smart_string.hpp
@@ -3,12 +3,18 @@
class SmartString
{
public:
- SmartString(char *c_str);
- SmartString(unsigned int size);
+ explicit SmartString(char *c_str);
+ explicit SmartString(unsigned int size);
+ SmartString(const SmartString &smart_str);
+ SmartString(SmartString &&smart_str) noexcept;
+
+ SmartString &operator=(const SmartString &smart_str);
+
+ SmartString &operator=(SmartString &&smart_str) noexcept;
~SmartString();
- operator char *() const;
+ explicit operator char *() const;
char *c_str = nullptr;
};