Fix : Extract the gps information according to a locale
[platform/framework/native/content.git] / src / FCnt_ImageMetadataImpl.cpp
index b80ed52..90edd25 100644 (file)
@@ -1,5 +1,4 @@
 //
-// Open Service Platform
 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
 //
 // Licensed under the Apache License, Version 2.0 (the License);
@@ -21,7 +20,6 @@
  * This file contains implementation of the %_ImageMetadataImpl class.
  */
 
-// includes
 #include <FBaseSysLog.h>
 #include <FMediaImage.h>
 #include <FGrpBitmap.h>
@@ -30,7 +28,6 @@
 #include <FIo_FileImpl.h>
 #include <FMedia_ImageImpl.h>
 
-// using namespaces
 using namespace std;
 using namespace Tizen::Base;
 using namespace Tizen::Io;
@@ -391,20 +388,16 @@ _ImageMetadataImpl::Equals(const Tizen::Base::Object& rhs) const
 int
 _ImageMetadataImpl::GetHashCode(void) const
 {
-       int hash = 0;
-
-       hash += (this->GetCameraManufacturer()).GetHashCode();
-       hash += (this->GetCameraModel()).GetHashCode();
-       hash += (this->GetDateTime()).GetHashCode();
-       hash += Integer::GetHashCode(this->GetHeight());
-       hash += Double::GetHashCode(this->GetLatitude());
-       hash += Double::GetHashCode(this->GetLongitude());
-       hash += Integer::GetHashCode(this->GetOrientation());
-       hash += (this->GetSoftware()).GetHashCode();
-       hash += (this->GetWhiteBalance()).GetHashCode();
-       hash += Integer::GetHashCode(this->GetWidth());
-
-       return hash;
+       return (this->GetCameraManufacturer()).GetHashCode()
+                       ^ (this->GetCameraModel()).GetHashCode()
+                       ^ (this->GetDateTime()).GetHashCode()
+                       ^ Integer::GetHashCode(this->GetHeight())
+                       ^ Double::GetHashCode(this->GetLatitude())
+                       ^ Double::GetHashCode(this->GetLongitude())
+                       ^ Integer::GetHashCode(this->GetOrientation())
+                       ^ (this->GetSoftware()).GetHashCode()
+                       ^ (this->GetWhiteBalance()).GetHashCode()
+                       ^ Integer::GetHashCode(this->GetWidth());
 }
 
 int
@@ -529,7 +522,7 @@ _ImageMetadataImpl::GetThumbnailN(void) const
 
        SysTryReturn(NID_CNT, __pImageMeta != null, null, E_DATA_NOT_FOUND, "[E_DATA_NOT_FOUND] GetThumbnailN failed.");
        SysTryReturn(NID_CNT, _FileImpl::IsFileExist(__pImageMeta->contentPath), null, E_DATA_NOT_FOUND,
-                               "[E_DATA_NOT_FOUND] GetThumbnailN failed [%ls].", (__pImageMeta->contentPath).GetPointer());
+                               "[E_DATA_NOT_FOUND] GetThumbnailN from contentPath failed.");
 
        Image image;
        result r = image.Construct();