CalendarItemPropertiesPrivObject *privateObject =
static_cast<CalendarItemPropertiesPrivObject*>(JSObjectGetPrivate(thisObject));
- TIZEN_CHECK_ACCESS(context, exception, privateObject, CALENDAR_FUNCTION_API_CONVERT_TO_STRING);
-
Try
{
if (!privateObject) {
ThrowMsg(ConversionException, "Object is null.");
}
+ TIZEN_CHECK_ACCESS(context, exception, privateObject, CALENDAR_FUNCTION_API_CONVERT_TO_STRING);
+
CalendarEventPtr item = privateObject->getObject();
if (!item) {
ThrowMsg(ConversionException, "Parameter conversion failed.");
CalendarItemPropertiesPrivObject *privateObject =
static_cast<CalendarItemPropertiesPrivObject*>(JSObjectGetPrivate(thisObject));
- TIZEN_CHECK_ACCESS(context, exception, privateObject, CALENDAR_FUNCTION_API_CLONE);
-
Try
{
if (!privateObject) {
ThrowMsg(ConversionException, "Object is null.");
}
+ TIZEN_CHECK_ACCESS(context, exception, privateObject, CALENDAR_FUNCTION_API_CLONE);
+
CalendarEventPtr item = privateObject->getObject(); // item to copy
if (!item) {
ThrowMsg(ConversionException, "Parameter conversion failed.");