resolve N_SE-45922 issue (remove global static non-POD)
authorwoo <s-w.woo@samsung.com>
Fri, 12 Jul 2013 10:37:29 +0000 (19:37 +0900)
committerwoo <s-w.woo@samsung.com>
Fri, 12 Jul 2013 10:42:48 +0000 (19:42 +0900)
Change-Id: I3906a1c7e29d8eb3bc497fda5552ad68d6e5b4a4
Signed-off-by: woo <s-w.woo@samsung.com>
src/ui/FUi_OrientationAgent.cpp [changed mode: 0644->0755]
src/ui/controls/FUiCtrl_FormImpl.cpp [changed mode: 0644->0755]
src/ui/controls/FUiCtrl_Frame.cpp [changed mode: 0644->0755]
src/ui/controls/FUiCtrl_FrameImpl.cpp [changed mode: 0644->0755]
src/ui/controls/FUiCtrl_OverlayRegionImpl.cpp [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 7b677f0..26680f9
@@ -48,9 +48,12 @@ using namespace Tizen::Base::Runtime;
 using namespace Tizen::Ui::Controls;
 using namespace Tizen::Graphics;
 
-namespace Tizen { namespace Ui {
+namespace
+{
+const wchar_t* _REQUEST_ORIENTATION_EVENT = L"RequestOrientationEvent";
+}
 
-const String _REQUEST_ORIENTATION_EVENT = L"RequestOrientationEvent";
+namespace Tizen { namespace Ui {
 
 _OrientationAgent*
 _OrientationAgent::CreateInstanceN(Control& publicControl)
old mode 100644 (file)
new mode 100755 (executable)
index b9eeb33..28f28e1
@@ -59,10 +59,13 @@ using namespace Tizen::Ui::Animations;
 
 #define OPTIONKEY      SOFTKEY_COUNT
 
-namespace Tizen { namespace Ui { namespace Controls
+namespace
 {
+const wchar_t* _REQUEST_ORIENTATION_EVENT = L"RequestOrientationEvent";
+}
 
-const String _REQUEST_ORIENTATION_EVENT = L"RequestOrientationEvent";
+namespace Tizen { namespace Ui { namespace Controls
+{
 
 Dimension
 _FormImpl::FormSizeInfo::GetDefaultMinimumSize(_ControlOrientation orientation) const
old mode 100644 (file)
new mode 100755 (executable)
index 4d7d81f..9cafa3d
@@ -55,7 +55,7 @@ using namespace Tizen::Graphics;
 
 namespace Tizen { namespace Ui { namespace Controls {
 
-const String _ACTIVATE_FRAME = L"ActivateFrame";
+const wchar_t* _ACTIVATE_FRAME = L"ActivateFrame";
 
 _Frame::_Frame(void)
        : __pFramePresenter(null)
old mode 100644 (file)
new mode 100755 (executable)
index 94a8dfa..5c0b378
@@ -39,9 +39,13 @@ using namespace Tizen::Graphics;
 using namespace Tizen::Ui;
 using namespace Tizen::Ui::Animations;
 
+namespace
+{
+const wchar_t* _REQUEST_ORIENTATION_EVENT = L"RequestOrientationEvent";
+}
+
 namespace Tizen { namespace Ui { namespace Controls {
 
-const String _REQUEST_ORIENTATION_EVENT = L"RequestOrientationEvent";
 
 const _FrameImpl*
 _FrameImpl::GetInstance(const Frame& frame)
old mode 100644 (file)
new mode 100755 (executable)
index e4a7f65..40dad82
@@ -574,7 +574,7 @@ _OverlayRegionMediaCapability::Construct(void)
        long long length = attributes.GetFileSize();
        SysTryReturnResult(NID_UI_CTRL, length > 0, E_SYSTEM, "The size of file(%s) is zero.", fileName.GetPointer());
 
-       std::unique_ptr<char> pXmlBuffer(new (std::nothrow) char[length]);
+       std::unique_ptr<char[]> pXmlBuffer(new (std::nothrow) char[length]);
        SysTryReturnResult(NID_UI_CTRL, pXmlBuffer != null, E_OUT_OF_MEMORY, "The Buffer of Xml is null");
 
        File fileObj;