[Kde-pim] [patch] Minor optimisation for kdepimlibs/mailtransport

Allen Winter winter at kde.org
Mon May 12 14:31:03 BST 2008


On Wednesday 07 May 2008 07:54:30 Brad Hards wrote:
> Is this change OK? It doesn't seem to make much sense to construct the
> QBuffer just to do a readAll(), when you already have the byte array
>
Makes sense to me.
But I'd like another opinion from an expert.
Till? Marc? 

>
> Index: mailtransport/sendmailjob.cpp
> 
===================================================================
> --- mailtransport/sendmailjob.cpp       (revision 805010)
> +++ mailtransport/sendmailjob.cpp       (working copy)
> @@ -72,7 +72,7 @@
>      setErrorText( i18n( "Failed to execute mailer program %1",
> transport()->host() ) );
>      emitResult();
>    } else {
> -    d->process->write( buffer()->readAll() );
> +    d->process->write( data() );
>      d->process->closeWriteChannel();
>    }
>  }
> _______________________________________________
> KDE PIM mailing list kde-pim at kde.org
> https://mail.kde.org/mailman/listinfo/kde-pim
> KDE PIM home page at http://pim.kde.org/


_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list