summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-04-24 13:36:18 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-04-24 16:10:36 +0200
commit88be8aa14d52ad102dc6b01c1c962d4e6cac4941 (patch)
tree391689a2be8f4b9cbb5c688dfd27e558bbc1daf3 /svx
parentbd44b3eef62f4325a189539d6ab1b90ca63cfc28 (diff)
tdf#89522 PERF FILEOPEN xlsx, part 2
re-arrange the conditions so we avoid the dynamic_cast most of the time. This takes the file-open time from 40s to 29s for me. Change-Id: If65a63502fd545003137747605332be65d5e91ca Reviewed-on: https://gerrit.libreoffice.org/71229 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/unodraw/unoshtxt.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/unodraw/unoshtxt.cxx b/svx/source/unodraw/unoshtxt.cxx
index dbfb5a544c6c..9ea667c396f9 100644
--- a/svx/source/unodraw/unoshtxt.cxx
+++ b/svx/source/unodraw/unoshtxt.cxx
@@ -265,10 +265,6 @@ void SvxTextEditSourceImpl::Notify(SfxBroadcaster& rBC, const SfxHint& rHint)
mpViewForwarder.reset();
}
}
- else if (const SvxViewChangedHint* pViewHint = dynamic_cast<const SvxViewChangedHint*>(&rHint))
- {
- Broadcast( *pViewHint );
- }
else if (rHint.GetId() == SfxHintId::ThisIsAnSdrHint)
{
const SdrHint* pSdrHint = static_cast<const SdrHint*>(&rHint);
@@ -377,6 +373,10 @@ void SvxTextEditSourceImpl::Notify(SfxBroadcaster& rBC, const SfxHint& rHint)
break;
}
}
+ else if (const SvxViewChangedHint* pViewHint = dynamic_cast<const SvxViewChangedHint*>(&rHint))
+ {
+ Broadcast( *pViewHint );
+ }
}
/* this is a callback from the attached SdrObject when it is actually deleted */