summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/docchart.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-06-22 22:39:27 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-06-23 09:55:59 +0200
commit1feb59c3dd9e5f714ce894f8de31bbb6869c9f3b (patch)
treece8f05e8457a1b60ed318b4147054ed030e0bf56 /sw/source/core/doc/docchart.cxx
parentbc4cea4943c9189b92f51aacf097549023398b2e (diff)
optimised FindFormatByName for SwFrameFormats
by re-arranging the boost::multi_index key, we can re-use that index to find all formats matching a name Change-Id: I3b3b6ceb7137926be3981578a64052f47f279af0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117676 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/doc/docchart.cxx')
-rw-r--r--sw/source/core/doc/docchart.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/docchart.cxx b/sw/source/core/doc/docchart.cxx
index cfa3f153074b..693f16886468 100644
--- a/sw/source/core/doc/docchart.cxx
+++ b/sw/source/core/doc/docchart.cxx
@@ -117,7 +117,7 @@ void SwDoc::UpdateCharts_( const SwTable& rTable, SwViewShell const & rVSh ) con
}
}
-void SwDoc::UpdateCharts( std::u16string_view rName ) const
+void SwDoc::UpdateCharts( const OUString& rName ) const
{
SwTable* pTmpTable = SwTable::FindTable( FindTableFormatByName( rName ) );
if( pTmpTable )