void Text::SetText( const Text& text ) { if( !text.IsEmpty() ) { if( NULL == mImpl ) { mImpl = new Internal::Text( *text.mImpl ); } else { mImpl->SetTextArray( text.mImpl->GetTextArray() ); } } else { delete mImpl; mImpl = NULL; } }
Text::Text( const Text& text ) : mImpl( text.IsEmpty() ? NULL : new Internal::Text( *text.mImpl ) ) { }