remove compiler warning
authorYoung Ik Cho <youngik.cho@samsung.com>
Wed, 17 Jul 2013 06:06:17 +0000 (15:06 +0900)
committerYoung Ik Cho <youngik.cho@samsung.com>
Wed, 17 Jul 2013 06:06:17 +0000 (15:06 +0900)
Change-Id: Id546ad31d4521967ccda7616725997b0e942084f
Signed-off-by: Young Ik Cho <youngik.cho@samsung.com>
src/base/FBaseDoubleMatrix.cpp
src/base/FBaseFloatMatrix.cpp
src/base/FBaseIntMatrix.cpp
src/base/inc/FBase_ObjectManagerImpl.h
src/base/runtime/FBaseRt_ThreadImpl.cpp
src/base/runtime/FBaseRt_ThreadImpl.h

index cd03768..a893c36 100644 (file)
@@ -694,9 +694,9 @@ DoubleMatrix::Invert(void)
                pMinor[i] = new double[__row - 1];
                if (pMinor[i] == null)
                {
-                       for( int i = 0 ; i < __row ; i++ )
+                       for( int k = 0 ; k < __row ; k++ )
                        {
-                               delete[] pInverse[i];
+                               delete[] pInverse[k];
                        }
 
                        for (int j = 0; j < i;  j++)
index 2c8628a..05cb4de 100644 (file)
@@ -692,9 +692,9 @@ FloatMatrix::Invert(void)
                pMinor[i] = new (std::nothrow) float[__row - 1];
                if (pMinor[i] == null)
                {
-                       for (int i = 0 ; i < __row ; i++)
+                       for (int k = 0 ; k < __row ; k++)
                        {
-                               delete[] pInverse[i];
+                               delete[] pInverse[k];
                        }
 
                        for (int j = 0; j < i;  j++)
index 4e03eb4..142a65a 100644 (file)
@@ -691,9 +691,9 @@ IntMatrix::Invert(void)
                pMinor[i] = new int[__row - 1];
                if (pMinor[i] == null)
                {
-                       for ( int i = 0 ; i < __row ; i++ )
+                       for ( int k = 0 ; k < __row ; k++ )
                        {
-                               delete[] pInverse[i];
+                               delete[] pInverse[k];
                        }
 
                        for (int j = 0; j < i;  j++)
index 9cb2b4d..9b7d156 100755 (executable)
@@ -74,15 +74,15 @@ public:
         *
         * @since 2.0
         */
-       _ObjectManagerImpl(_ObjectManagerImpl& pObjectManagerImpl)
+       _ObjectManagerImpl(_ObjectManagerImpl& objectManagerImpl)
        {
-               __slotCount = pObjectManagerImpl.__slotCount;
-               __slotCapacity = pObjectManagerImpl.__slotCapacity;
-               __pSlots = new _HandleElement[pObjectManagerImpl.__slotCapacity];
+               __slotCount = objectManagerImpl.__slotCount;
+               __slotCapacity = objectManagerImpl.__slotCapacity;
+               __pSlots = new _HandleElement[objectManagerImpl.__slotCapacity];
 
-               for (unsigned int i = 0; i < pObjectManagerImpl.__slotCapacity; i++)
+               for (unsigned int i = 0; i < objectManagerImpl.__slotCapacity; i++)
                {
-                       __pSlots[i] = pObjectManagerImpl.__pSlots[i];
+                       __pSlots[i] = objectManagerImpl.__pSlots[i];
                }
 
                __pLock = new (std::nothrow) Tizen::Base::Runtime::Mutex();
index e7cd3a5..9a15e06 100644 (file)
@@ -232,7 +232,7 @@ _ThreadImpl::SetNativeThread(pthread_t nativeThread)
        __nativeThread = nativeThread;
 }
 
-const ThreadPriority
+ThreadPriority
 _ThreadImpl::GetPriority(void) const
 {
        return __priority;
index 5f87103..6667f76 100644 (file)
@@ -79,7 +79,7 @@ protected:
 
        const Thread* GetThread(void) const;
 
-       const ThreadPriority GetPriority(void) const;
+       ThreadPriority GetPriority(void) const;
 
        void SetThread(Thread* pThread);