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