aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/variant.cpp9
-rw-r--r--src/variant.h3
2 files changed, 11 insertions, 1 deletions
diff --git a/src/variant.cpp b/src/variant.cpp
index 95eea88..62e74bc 100644
--- a/src/variant.cpp
+++ b/src/variant.cpp
@@ -18,6 +18,15 @@ Bu::Variant::Variant() :
18{ 18{
19} 19}
20 20
21Bu::Variant::Variant( const Variant &v ) :
22 pCore( NULL )
23{
24 if( v.pCore )
25 {
26 pCore = v.pCore->clone();
27 }
28}
29
21Bu::Variant::~Variant() 30Bu::Variant::~Variant()
22{ 31{
23} 32}
diff --git a/src/variant.h b/src/variant.h
index 889df88..805ad1d 100644
--- a/src/variant.h
+++ b/src/variant.h
@@ -52,7 +52,7 @@ namespace Bu
52 return data; 52 return data;
53 } 53 }
54 54
55 t &getData() const 55 const t &getData() const
56 { 56 {
57 return data; 57 return data;
58 } 58 }
@@ -90,6 +90,7 @@ namespace Bu
90 { 90 {
91 public: 91 public:
92 Variant(); 92 Variant();
93 Variant( const Variant &v );
93 virtual ~Variant(); 94 virtual ~Variant();
94 95
95 bool isSet(); 96 bool isSet();