Change-Id: I76d3f352b4c3d7c8c801b9edd70f4b970d3ba0aa
FakeObject object;
std::string typeName = object.GetTypeName();
- DALI_TEST_CHECK( typeName == Dali::String::EMPTY );
+ DALI_TEST_CHECK( typeName.empty() );
END_TEST;
}
return request->url;
}
- return String::EMPTY;
+ // Only create empty string if required
+ static std::string empty;
+ return empty;
}
const ImageAttributes& ImageFactory::GetActualAttributes( const ResourceTicketPtr& ticket ) const
const float Math::MACHINE_EPSILON_1000 = Epsilon<1000>::value;
const float Math::MACHINE_EPSILON_10000 = Epsilon<10000>::value;
-const std::string String::EMPTY("");
-
} // namespace Dali
} // namespace Math
-/**
- * @brief String Constants
- */
-namespace String
-{
-extern const std::string EMPTY; ///< The empty string
-}
-
} // namespace Dali
#endif // __DALI_CONSTANTS_H__
// Return an empty string if type-name not found.
DALI_LOG_WARNING( "TypeName Not Found\n" );
- return String::EMPTY;
+ static std::string empty;
+ return empty;
}
bool BaseObject::GetTypeInfo(Dali::TypeInfo& typeInfo) const