include/svx/framelink.hxx | 11 +++++++++++ svx/source/dialog/framelink.cxx | 5 ----- 2 files changed, 11 insertions(+), 5 deletions(-)
New commits: commit 6e88e4edfba146f6163e7a1173dbd4644b21432e Author: Luboš Luňák <l.lu...@collabora.com> AuthorDate: Fri Mar 11 08:49:17 2022 +0100 Commit: Luboš Luňák <l.lu...@collabora.com> CommitDate: Fri Mar 11 15:37:13 2022 +0100 make svx::frame::Style ctor inline ScDocument: :FillInfo() may result in calling it often. Change-Id: I05d0582befc57c4959c33fae6dec3d340b8a49ba Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131338 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lu...@collabora.com> diff --git a/include/svx/framelink.hxx b/include/svx/framelink.hxx index 2ee2a6f556e0..ae35185a4eb6 100644 --- a/include/svx/framelink.hxx +++ b/include/svx/framelink.hxx @@ -167,6 +167,17 @@ public: inline bool operator>( const Style& rL, const Style& rR ) { return rR.operator<(rL); } +inline Style::Style() + : mfPrim(0) + , mfDist(0) + , mfSecn(0) + , mfPatternScale(1.0) + , meRefMode(RefMode::Centered) + , mnType(SvxBorderLineStyle::SOLID) + , mbWordTableCell(false) + , mbUseGapColor(false) +{} + } diff --git a/svx/source/dialog/framelink.cxx b/svx/source/dialog/framelink.cxx index 6400eb33d8b0..77098bd3e80d 100644 --- a/svx/source/dialog/framelink.cxx +++ b/svx/source/dialog/framelink.cxx @@ -31,11 +31,6 @@ using namespace editeng; namespace svx::frame { -Style::Style() -{ - Clear(); -} - Style::Style( double nP, double nD, double nS, SvxBorderLineStyle nType, double fScale ) { Clear();