Remove unnecessary exported template code from Dali::Any 12/29012/3
authorKimmo Hoikka <kimmo.hoikka@samsung.com>
Mon, 20 Oct 2014 08:55:45 +0000 (09:55 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Mon, 20 Oct 2014 09:13:06 +0000 (02:13 -0700)
[Problem] unnecessary exports
[Cause] too large scope for DALI_IMPORT_API
[Solution] export only whats needed

Change-Id: Id59418c405a01da561250949c204434363224b07

dali/public-api/object/any.h

index 2d01667..df7022f 100644 (file)
@@ -25,7 +25,7 @@
 // INTERNAL INCLUDES
 #include <dali/public-api/common/dali-common.h>
 
-namespace Dali DALI_IMPORT_API
+namespace Dali
 {
 
 /**
@@ -47,19 +47,19 @@ public:
   /**
    * Default constructor.
    */
-  Any();
+  DALI_IMPORT_API Any();
 
   /**
    * Destructor. Free resources.
    */
-  ~Any();
+  DALI_IMPORT_API ~Any();
 
   /**
    * @brief Pass Assert message
    *
    * @param assertMessage Assert message to report
    */
-  static void AssertAlways( const char* assertMessage );
+  DALI_IMPORT_API static void AssertAlways( const char* assertMessage );
 
   /**
    * @brief Constructs a Any type with the given value.
@@ -130,7 +130,7 @@ public:
    *
    * @param [in] any Any to be assigned which contains a value of identical type to current contents.
    */
-  Any& operator=( const Any& any );
+  DALI_IMPORT_API Any& operator=( const Any& any );
 
   /**
    * @brief Get a value of type Type from container
@@ -149,7 +149,7 @@ public:
    * @return The std::type_info of the stored value or the type info of the void
    * type if there is no value stored.
    */
-  const std::type_info& GetType() const;
+  DALI_IMPORT_API const std::type_info& GetType() const;
 
   /**
    * @brief Retrieves the stored value in the Any type.