示例#1
0
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;
  }
}
示例#2
0
Text::Text( const Text& text )
: mImpl( text.IsEmpty() ? NULL : new Internal::Text( *text.mImpl ) )
{
}