remove unnecessary auto_ptr in Font(only check FGrp_FontRsrcManager.cpp) & change...
authorSungyeon Woo <s.woo@samsung.com>
Wed, 28 Aug 2013 02:46:07 +0000 (11:46 +0900)
committerSungyeon Woo <s.woo@samsung.com>
Wed, 28 Aug 2013 02:58:14 +0000 (11:58 +0900)
Change-Id: I1ace02cef4efb56119a7e19c39051ea46cd156c9
Signed-off-by: Sungyeon Woo <s.woo@samsung.com>
27 files changed:
src/graphics/FGrp_Bitmap.cpp [changed mode: 0755->0644]
src/graphics/FGrp_Bitmap.h [changed mode: 0755->0644]
src/graphics/FGrp_BitmapImpl.cpp [changed mode: 0755->0644]
src/graphics/FGrp_BitmapTool.cpp [changed mode: 0755->0644]
src/graphics/FGrp_BitmapUtil.cpp [changed mode: 0755->0644]
src/graphics/FGrp_BitmapUtil.h [changed mode: 0755->0644]
src/graphics/FGrp_BufferInfoImpl.cpp [changed mode: 0755->0644]
src/graphics/FGrp_Canvas.cpp [changed mode: 0755->0644]
src/graphics/FGrp_Canvas.h [changed mode: 0755->0644]
src/graphics/FGrp_CanvasImpl.cpp [changed mode: 0755->0644]
src/graphics/FGrp_CanvasPixman.cpp [changed mode: 0755->0644]
src/graphics/FGrp_CoordinateSystemUtils.cpp [changed mode: 0755->0644]
src/graphics/FGrp_Farm.cpp [changed mode: 0755->0644]
src/graphics/FGrp_Farm.h [changed mode: 0755->0644]
src/graphics/FGrp_Font.h [changed mode: 0755->0644]
src/graphics/FGrp_FontBidiUtil.cpp [changed mode: 0755->0644]
src/graphics/FGrp_FontBidiUtil.h [changed mode: 0755->0644]
src/graphics/FGrp_FontFt2.cpp [changed mode: 0755->0644]
src/graphics/FGrp_FontFt2.h [changed mode: 0755->0644]
src/graphics/FGrp_FontPrivate.h [changed mode: 0755->0644]
src/graphics/FGrp_FontRsrcManager.cpp [changed mode: 0755->0644]
src/graphics/FGrp_IFont.h [changed mode: 0755->0644]
src/graphics/inc/FGrp_BitmapImpl.h [changed mode: 0755->0644]
src/graphics/inc/FGrp_BitmapTool.h [changed mode: 0755->0644]
src/graphics/inc/FGrp_BufferInfoImpl.h [changed mode: 0755->0644]
src/graphics/inc/FGrp_CanvasImpl.h [changed mode: 0755->0644]
src/graphics/inc/FGrp_CoordinateSystemUtils.h [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
index 8f8b6dd..a7b3868
@@ -418,11 +418,10 @@ _FontRsrcManager::GetFont(const Tizen::Base::String& fontPath, int style, _Util:
                // create font
                rtn = __CreateFont(_DEFAULT_FONT_ENGINE, buffer.get(), fileLength, _DEFAULT_FONT_FACE, &pFont);
 #endif
-               std::auto_ptr<_IFont> autoPtrFont(pFont);
-               SysTryReturnResult(NID_GRP, rtn && autoPtrFont.get() != null, E_UNSUPPORTED_FORMAT, "Failed to create _IFont instance");
+               SysTryReturnResult(NID_GRP, rtn && pFont != null, E_UNSUPPORTED_FORMAT, "Failed to create _IFont instance");
 
                // make shared resource
-               sharedFont.reset(autoPtrFont.release());
+               sharedFont.reset(pFont);
 
                _IFont::Attrib fontAttrib;
                rtn = pFont->GetAttrib(fontAttrib);
@@ -517,13 +516,10 @@ _FontRsrcManager::GetTempFont(const Tizen::Base::String& fontPath, int style, _U
                std::auto_ptr<ByteBuffer> pathString(pBuffer);
 
                rtn = __CreateFont(_DEFAULT_FONT_ENGINE, (char*)pathString->GetPointer(), _DEFAULT_FONT_FACE, &pFont);
-
-               std::auto_ptr<_IFont> autoPtrFont(pFont);
-               SysTryReturnResult(NID_GRP, rtn && autoPtrFont.get() != null, E_UNSUPPORTED_FORMAT, "Failed to create _IFont instance");
+               SysTryReturnResult(NID_GRP, rtn && pFont != null, E_UNSUPPORTED_FORMAT, "Failed to create _IFont instance");
 
                // make shared resource
-               // ykahn: wrong use for a smart pointer
-               sharedFont.reset(autoPtrFont.release());
+               sharedFont.reset(pFont);
 
                _IFont::Attrib fontAttrib;
                rtn = pFont->GetAttrib(fontAttrib);
@@ -600,11 +596,10 @@ _FontRsrcManager::GetFont(const byte* pFontData, int fontDataSize, int style, _U
        // create new font with user resource.
        //--------------------------------------------------------------------------
        bool rtn = __CreateFont(_DEFAULT_FONT_ENGINE, pFontData, fontDataSize, _DEFAULT_FONT_FACE, &pFont);
-       std::auto_ptr<_IFont> autoPtrFont(pFont);
-       SysTryReturnResult(NID_GRP, rtn && autoPtrFont.get() != null, E_UNSUPPORTED_FORMAT, "Failed to create _IFont");
+       SysTryReturnResult(NID_GRP, rtn && pFont != null, E_UNSUPPORTED_FORMAT, "Failed to create _IFont");
 
        // make shared resource
-       sharedFont.reset(autoPtrFont.release());
+       sharedFont.reset(pFont);
 
        _IFont::Attrib fontAttrib;
        rtn = pFont->GetAttrib(fontAttrib);
@@ -718,11 +713,10 @@ _FontRsrcManager::GetFont(int style, _Util::FixedPoint26_6 size, SharedFontResou
 
                rtn = __CreateFont(_DEFAULT_FONT_ENGINE, autoPtrBuffer.get(), fileLength, _DEFAULT_FONT_FACE, &pFont);
 #endif
-               std::auto_ptr<_IFont> autoPtrFont(pFont);
-               SysTryReturnResult(NID_GRP, rtn && autoPtrFont.get() != null, E_UNSUPPORTED_FORMAT, "Failed to create _IFont instance");
+               SysTryReturnResult(NID_GRP, rtn && pFont != null, E_UNSUPPORTED_FORMAT, "Failed to create _IFont instance");
 
                // make shared resource
-               sharedFont.reset(autoPtrFont.release());
+               sharedFont.reset(pFont);
 
                _IFont::Attrib fontAttrib;
                rtn = pFont->GetAttrib(fontAttrib);
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)