diff options
author | Renato Filho <renato.filho@openbossa.org> | 2010-07-20 14:00:44 -0300 |
---|---|---|
committer | Renato Filho <renato.filho@openbossa.org> | 2010-08-18 15:21:20 -0300 |
commit | b4c007c3ee9932b7a384b2b4fcdc8b4be2dfbad9 (patch) | |
tree | e106cc99a076d3c4677b6afb4857fcb36b1351f9 /tests/libother | |
parent | da5a88b3b53b4769e77eff1d48cc9a2c7152f6c2 (diff) | |
download | shiboken-b4c007c3ee9932b7a384b2b4fcdc8b4be2dfbad9.tar.gz shiboken-b4c007c3ee9932b7a384b2b4fcdc8b4be2dfbad9.tar.xz shiboken-b4c007c3ee9932b7a384b2b4fcdc8b4be2dfbad9.zip |
fixed tests exported symbols.
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com>
Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests/libother')
-rw-r--r-- | tests/libother/extendsnoimplicitconversion.h | 6 | ||||
-rw-r--r-- | tests/libother/number.h | 4 | ||||
-rw-r--r-- | tests/libother/otherderived.h | 10 | ||||
-rw-r--r-- | tests/libother/othermultiplederived.h | 4 | ||||
-rw-r--r-- | tests/libother/otherobjecttype.h | 2 |
5 files changed, 13 insertions, 13 deletions
diff --git a/tests/libother/extendsnoimplicitconversion.h b/tests/libother/extendsnoimplicitconversion.h index 0a06482e..a94c63ad 100644 --- a/tests/libother/extendsnoimplicitconversion.h +++ b/tests/libother/extendsnoimplicitconversion.h @@ -38,12 +38,12 @@ #include "libothermacros.h" #include "noimplicitconversion.h" -class LIBOTHER_API ExtendsNoImplicitConversion +class ExtendsNoImplicitConversion { public: explicit ExtendsNoImplicitConversion(int objId) : m_objId(objId) {}; - int objId() const { return m_objId; } - operator NoImplicitConversion() const { return NoImplicitConversion(m_objId); } + inline int objId() const { return m_objId; } + inline operator NoImplicitConversion() const { return NoImplicitConversion(m_objId); } private: int m_objId; }; diff --git a/tests/libother/number.h b/tests/libother/number.h index 32af3325..8fd2671d 100644 --- a/tests/libother/number.h +++ b/tests/libother/number.h @@ -43,10 +43,10 @@ class LIBOTHER_API Number { public: explicit Number(int value) : m_value(value) {}; - int value() const { return m_value; } + inline int value() const { return m_value; } Str toStr() const; - operator Str() const { return toStr(); } + inline operator Str() const { return toStr(); } friend LIBOTHER_API Point operator*(const Point&, const Number&); diff --git a/tests/libother/otherderived.h b/tests/libother/otherderived.h index 4aae12aa..8e9171ba 100644 --- a/tests/libother/otherderived.h +++ b/tests/libother/otherderived.h @@ -53,16 +53,16 @@ public: virtual void unpureVirtual(); virtual PrintFormat returnAnEnum() { return Short; } - void useObjectTypeFromOtherModule(ObjectType*) {} - Event useValueTypeFromOtherModule(const Event& e) { return e; } - Complex useValueTypeFromOtherModule(const Complex& c) { return c; } - void useEnumTypeFromOtherModule(OverloadedFuncEnum) {} + inline void useObjectTypeFromOtherModule(ObjectType*) {} + inline Event useValueTypeFromOtherModule(const Event& e) { return e; } + inline Complex useValueTypeFromOtherModule(const Complex& c) { return c; } + inline void useEnumTypeFromOtherModule(OverloadedFuncEnum) {} // factory method static Abstract* createObject(); protected: - const char* getClassName() { return className(); } + inline const char* getClassName() { return className(); } virtual const char* className() { return "OtherDerived"; } }; #endif // OTHERDERIVED_H diff --git a/tests/libother/othermultiplederived.h b/tests/libother/othermultiplederived.h index 36c23ebc..cefc7256 100644 --- a/tests/libother/othermultiplederived.h +++ b/tests/libother/othermultiplederived.h @@ -40,11 +40,11 @@ class ObjectType; -class LIBOTHER_API OtherMultipleDerived : public MDerived1 +class OtherMultipleDerived : public MDerived1 { public: // this will use CppCopier from other module (bug#142) - VirtualMethods returnUselessClass() { return VirtualMethods(); } + inline VirtualMethods returnUselessClass() { return VirtualMethods(); } }; #endif diff --git a/tests/libother/otherobjecttype.h b/tests/libother/otherobjecttype.h index 24596fa9..d4c77cb1 100644 --- a/tests/libother/otherobjecttype.h +++ b/tests/libother/otherobjecttype.h @@ -42,7 +42,7 @@ #include "objecttype.h" #include "collector.h" -class LIBOTHER_API OtherObjectType : public ObjectType +class OtherObjectType : public ObjectType { public: |