If you want to optimize it with RVO i'd do this:

<pre lang="cpp"><code>CCPoint CCPoint::operator+(const CCPoint& right) const
{
    return CCPoint(this->x + right.x, this->y + right.y);
};</code>