/*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
// EXTERNAL INCLUDES
#include <algorithm>
+#include <cstring> // for strcmp
// INTERNAL INCLUDES
#include <dali/internal/event/common/thread-local-storage.h>
// Signals
-const char* const SIGNAL_OBJECT_CREATED = "object-created";
-const char* const SIGNAL_OBJECT_DESTROYED = "object-destroyed";
+const char* const SIGNAL_OBJECT_CREATED = "objectCreated";
+const char* const SIGNAL_OBJECT_DESTROYED = "objectDestroyed";
TypeRegistration mType( typeid( Dali::ObjectRegistry ), typeid( Dali::BaseHandle ), NULL );
bool ObjectRegistry::DoConnectSignal( BaseObject* object, ConnectionTrackerInterface* tracker, const std::string& signalName, FunctorDelegate* functor )
{
bool connected( true );
- ObjectRegistry* objectRegistry = dynamic_cast<ObjectRegistry*>( object );
+ ObjectRegistry* objectRegistry = static_cast< ObjectRegistry* >( object ); // TypeRegistry guarantees that this is the correct type.
if( 0 == strcmp( signalName.c_str(), SIGNAL_OBJECT_CREATED ) )
{