InputMethodOptions::InputMethodOptions()
{
- mImpl = new Impl( );
+ mImpl.reset(new Impl());
+}
+
+InputMethodOptions::~InputMethodOptions()
+{
+ // destructor cannot be inlined and must be in a unit
+ // for unique_ptr to work with forward declaration
}
bool InputMethodOptions::IsPassword()
*/
// EXTERNAL INCLUDES
+#include <memory>
+
#include <dali/public-api/object/property-map.h>
// INTERNAL INCLUDES
InputMethodOptions(); /// Default InputMethodOptions options
/**
+ * Destructor
+ */
+ ~InputMethodOptions();
+
+ /**
* @brief Returns whether panel layout type is password or not
* @return true if panel layout type is password, false otherwise.
*/
private:
struct Impl;
- Impl* mImpl;
+ std::unique_ptr<Impl> mImpl;
};
} // namespace Dali