diff --git a/lib/base/array.hpp b/lib/base/array.hpp index 0e887f53d..f28d66b4b 100644 --- a/lib/base/array.hpp +++ b/lib/base/array.hpp @@ -45,6 +45,12 @@ public: typedef std::vector::size_type SizeType; + inline Array(void) + { } + + inline ~Array(void) + { } + Value Get(unsigned int index) const; void Set(unsigned int index, const Value& value); void Add(const Value& value); diff --git a/lib/base/dictionary.hpp b/lib/base/dictionary.hpp index 056914d5e..ef3902021 100644 --- a/lib/base/dictionary.hpp +++ b/lib/base/dictionary.hpp @@ -49,6 +49,12 @@ public: typedef std::pair Pair; + inline Dictionary(void) + { } + + inline ~Dictionary(void) + { } + Value Get(const char *key) const; Value Get(const String& key) const; void Set(const String& key, const Value& value); diff --git a/lib/base/string.hpp b/lib/base/string.hpp index ad019dc28..0869aef3e 100644 --- a/lib/base/string.hpp +++ b/lib/base/string.hpp @@ -69,6 +69,9 @@ public: : m_Data(other.m_Data) { } + inline ~String(void) + { } + template String(InputIterator begin, InputIterator end) : m_Data(begin, end) diff --git a/tools/mkclass/classcompiler.cpp b/tools/mkclass/classcompiler.cpp index 1dd24623a..ae2abbad0 100644 --- a/tools/mkclass/classcompiler.cpp +++ b/tools/mkclass/classcompiler.cpp @@ -597,7 +597,7 @@ void ClassCompiler::HandleClass(const Klass& klass, const ClassDebugInfo&) std::string realType = it->Type.GetRealType(); m_Header << "private:" << std::endl - << "\t" << realType << " GetDefault" << it->GetFriendlyName() << "(void) const;" << std::endl; + << "\t" << "inline " << realType << " GetDefault" << it->GetFriendlyName() << "(void) const;" << std::endl; m_Impl << realType << " ObjectImpl<" << klass.Name << ">::GetDefault" << it->GetFriendlyName() << "(void) const" << std::endl << "{" << std::endl;