merge with master
[platform/framework/native/content.git] / src / FCnt_ImageMetadataImpl.cpp
index b80ed52..23f6217 100644 (file)
@@ -21,7 +21,6 @@
  * This file contains implementation of the %_ImageMetadataImpl class.
  */
 
-// includes
 #include <FBaseSysLog.h>
 #include <FMediaImage.h>
 #include <FGrpBitmap.h>
@@ -30,7 +29,6 @@
 #include <FIo_FileImpl.h>
 #include <FMedia_ImageImpl.h>
 
-// using namespaces
 using namespace std;
 using namespace Tizen::Base;
 using namespace Tizen::Io;
@@ -391,20 +389,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