* @brief This is the implementation file for LongComparer class.
* @see Long and Tizen::Base::Collection::IComparer
*/
-
#include <FBaseLongComparer.h>
#include <FBaseLong.h>
#include <FBaseResult.h>
result
LongComparer::Compare(const Tizen::Base::Object& obj1, const Tizen::Base::Object& obj2, int& cmp) const
{
- const Long* pLong1 = dynamic_cast <const Long*>(&obj1);
- const Long* pLong2 = dynamic_cast <const Long*>(&obj2);
+ const Long* pLong1 = dynamic_cast< const Long* >(&obj1);
+ const Long* pLong2 = dynamic_cast< const Long* >(&obj2);
SysTryReturn(NID_BASE, (pLong1 != null && pLong2 != null), E_INVALID_ARG, E_INVALID_ARG,
"[%s] Invalid argument is used. Both of the obj1 and obj2 MUST be Long.", GetErrorMessage(E_INVALID_ARG));