Re: CVS: commit row abi/src/text/fmt/xp fp_TextRun.cpp

From: Robert Wilhelm <robert.wilhelm_at_gmx.net>
Date: Fri Oct 28 2005 - 23:17:35 CEST

Uwog,
Please backport. I measure 5% speed improvement loading RTF-SPEC-1.5.RTF
under Linux due to avoiding lots of setlocale calls.
Robert
On Fri, 2005-10-28 at 21:14 +0000, cvs@abisource.com wrote:
> Update of /cvsroot/abi/src/text/fmt/xp
> In directory abiword.snt.utwente.nl:/tmp/cvs-serv30704
>
> Modified Files:
> fp_TextRun.cpp
> Log Message:
> speed up.
>
>
> Index: fp_TextRun.cpp
> ===================================================================
> RCS file: /cvsroot/abi/src/text/fmt/xp/fp_TextRun.cpp,v
> retrieving revision 1.362
> retrieving revision 1.363
> diff -u -d -r1.362 -r1.363
> --- fp_TextRun.cpp 29 Sep 2005 09:33:07 -0000 1.362
> +++ fp_TextRun.cpp 28 Oct 2005 21:14:09 -0000 1.363
> @@ -155,7 +155,8 @@
> /*
> TODO map line width to a property, not a hard-coded value
> */
> - bChanged |= _setLineWidth(UT_convertToLogicalUnits("0.8pt"));
> + static const UT_sint32 iLineWidth = UT_convertToLogicalUnits("0.8pt");
> + bChanged |= _setLineWidth(iLineWidth);
>
> UT_uint32 oldDecors = _getDecorations();
> _setDecorations(0);
>
> -----------------------------------------------
> To unsubscribe from this list, send a message to
> abisource-cvs-commit-request@abisource.com with the word
> unsubscribe in the message body.
>

-- 
Robert Wilhelm <robert.wilhelm@gmx.net>
Received on Fri Oct 28 23:18:14 2005

This archive was generated by hypermail 2.1.8 : Fri Oct 28 2005 - 23:18:14 CEST