diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-10-07 10:09:56 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-10-07 13:24:01 +0000 |
commit | ae625675a88db46d378cc29f6513bbb4fa6e62a7 (patch) | |
tree | 0c91981c8e7726a79b3f911b86e30ca7475e1974 /vcl/inc/graphite_serverfont.hxx | |
parent | 9bb6863fcf0784c70a95510b488f0162fe6deb37 (diff) |
afl-eventtesting: creating OUString from super long sal_Unicode* is slow
the mpStr and mnLength arguments are always created from an OUString
and the OUString aRun(rArgs.mpStr); creates a duplicate of the original
string. Its way faster to pass the original OUString around instead.
Change-Id: I3de0cc31654eb215362548b6aee435f9c0c3c9db
Reviewed-on: https://gerrit.libreoffice.org/19221
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/inc/graphite_serverfont.hxx')
-rw-r--r-- | vcl/inc/graphite_serverfont.hxx | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/vcl/inc/graphite_serverfont.hxx b/vcl/inc/graphite_serverfont.hxx index ec002a55b771..63dc900d1024 100644 --- a/vcl/inc/graphite_serverfont.hxx +++ b/vcl/inc/graphite_serverfont.hxx @@ -53,13 +53,11 @@ private: // mutable so that the DrawOffset/DrawBase can be set mutable GraphiteLayoutImpl maImpl; grutils::GrFeatureParser * mpFeatures; - const sal_Unicode * mpStr; public: GraphiteServerFontLayout(ServerFont& pServerFont) throw(); virtual bool LayoutText( ImplLayoutArgs& rArgs) SAL_OVERRIDE { - mpStr = rArgs.mpStr; SalLayout::AdjustLayout(rArgs); return maImpl.LayoutText(rArgs); }; // first step of layout |