From: Adeel Kazmi Date: Thu, 16 Nov 2017 16:50:27 +0000 (+0000) Subject: Merge "[4.0] Render to Frame Buffer Object." into tizen_4.0 X-Git-Tag: accepted/tizen/4.0/unified/20171121.061728~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ca6b7c6dff74b55ba756226228969ba59a161709;hp=62911dcd069b5cfebc0f2589621cd1620e570997;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git Merge "[4.0] Render to Frame Buffer Object." into tizen_4.0 --- diff --git a/adaptors/devel-api/adaptor-framework/input-method-options.cpp b/adaptors/devel-api/adaptor-framework/input-method-options.cpp index b2d0b00..6b1401c 100644 --- a/adaptors/devel-api/adaptor-framework/input-method-options.cpp +++ b/adaptors/devel-api/adaptor-framework/input-method-options.cpp @@ -47,7 +47,13 @@ struct InputMethodOptions::Impl 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() diff --git a/adaptors/devel-api/adaptor-framework/input-method-options.h b/adaptors/devel-api/adaptor-framework/input-method-options.h index b2e98e2..15a339d 100644 --- a/adaptors/devel-api/adaptor-framework/input-method-options.h +++ b/adaptors/devel-api/adaptor-framework/input-method-options.h @@ -19,6 +19,8 @@ */ // EXTERNAL INCLUDES +#include + #include // INTERNAL INCLUDES @@ -40,6 +42,11 @@ public: 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. */ @@ -70,7 +77,7 @@ public: // Intended for internal use private: struct Impl; - Impl* mImpl; + std::unique_ptr mImpl; }; } // namespace Dali